Add is_blocked_by option for issue links API
What does this MR do and why?
Issue: #365796 (closed)
We already mentioned in the docs that is_blocked_by is supported for
the Issue Link API, but we rejected the type.
Now we support the is_blocked_by link type for the Issue Link API:
:id/issues/:issue_iid/links.
Screenshots or screen recordings
(Note, the screenshot shows the wrong ID in my terminal as I played around with the API before)
How to set up and validate locally
- Create two issues in a project
- Execute the following curl command with your Private Access Token for your local instance to set the type
is_blocked_byfor Issue 1:
curl --header "PRIVATE-TOKEN: $TOKEN" -X POST "http://gdk.test:3000/api/v4/projects/$PROJECT_ID/issues/$SOURCE_ISSUE_IID/links?target_project_id=$PROJECT_ID&target_issue_iid=$TARGET_ISSUE_IID&link_type=is_blocked_by" | jq
- The
target_issuethen blocks the issue with the iid1
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Nicolas Dular
