-
-
Notifications
You must be signed in to change notification settings - Fork 163
Enable issue linking for issue creation #351
Comments
Thanks @mimor for your suggestion.
We may however, consider this one since it is now supported for GitLab.com Free. My only concern is it being new for GitLab Core users. |
While you wait as we work on this, you can easily implement this with the glab api /projects/<PROJECT_ID_OR_PATH>/issues/1/links -X POST -F target_project_id=<PROJECT_ID_OR_PATH> -F target_issue_iid=<TARGET_ISSUE_ID> Here is an example: glab api /projects/glab-cli%2Ftest/issues/1/links -X POST -F target_project_id=glab-cli/test -F target_issue_iid=2 You can set a short alias for this command with: glab alias set linkIssue 'api /projects/$1/issues/$2/links -X POST -F target_project_id=$1 -F target_issue_iid=$3' and now you should be able to use glab linkIssue <PROJECT_ID_OR_PATH> <ISSUE_ID> <TARGET_ISSUE_ID> Example: glab linkIssue glab-cli%2Ftest 1 2
|
I'd like to complement you on this awesome and complete response 👏 |
@profclems Thank you for a great program!! Slight correction to help others wanting to link issues. This doesn't work for me:
However, this does, because, in the uri path, you need
|
We can link MR's to an issue, but we are not able to link related issues through the cli.
The current flow is:
glab issue create --title "" --description ""
Possible solution:
Introduce a --linked-issue flag, that takes an issue ulr/id from the cli.
The text was updated successfully, but these errors were encountered: