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.
Manage Confluence like never before! This new learning path teaches you how to manage content, users, and permissions while optimizing user experience. Built for admins at all levels who want to confidently lead and unlock more innovative collaboration.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.