Hello, We have a scriptrunner listener that creates an issue linked to the current one, based on a certain field editing action.
We use the following:
def linkManager = ComponentAccessor.getIssueLinkManager()
linkManager.createIssueLink(issue.getId(), newIssue.getId(),(Long)10003,(Long)1,user)
where 10003 is the issue link id for the "Blocks" link.
But the link has: inward description: blocks outwards description: is blocked by These do not seem to have any IDs.
I would like for the new issues that are created by the script to have the "blocks" description towards the issue they were created from (and of course, the already existing issues should be "blocked by" the newly created ones).
Thank you!
Hi Mihai,
you can just switch the newIssue with the issue ids and link will be the other way around (blocks instead of blocked by):
linkManager.createIssueLink(newIssue.getId(), issue.getId(),(Long)10003,(Long)1,user)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.
Learn moreOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.