Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create issue link via REST API in non-default direction, if one issue is not editable for user

kriegaex
Contributor
October 25, 2022

Sorry for being unable to come up with a catchier subject line. My situation ist as follows:

  • I want to create an issue link from issue A to B.
  • My user has the right to create a link from A to B, but not from B to a, because B is in a non-editable state.
  • In the web UI, I can choose the semantic direction of the "arrow" between both issues, e.g. "blocks" or "is blocked by".
  • My goal is automation via Java client REST API or via the lower-level pure REST API. But there, is seems I can only select a link type and have to use the default inward/outward link direction.

In my case, this leads to

RestClientException{statusCode=Optional.of(401), errorCollections=[ErrorCollection{status=401, errors={}, errorMessages=[Für den Vorgang 'B-123' liegt keine Berechtigung zum Verknüpfen von Vorgängen vor.]}]}

In English (my own translation): "For issue B-123, you have no right to create an issue link."

Is there any way to tell the REST API to create a link in the opposite direction, just like I can do it via web UI?

Documentation resource:
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issueLink-linkIssues

0 answers

Suggest an answer

Log in or Sign up to answer