restrict issue link

Yuvi December 12, 2019

Hello,

i need to restrict issue link if a certain type of link is already added.

i mean two links of same type must not be present in an issue.

Please help me on this, we  cannot use transition screen to achieve this as we are looking at issue linking only.

1 answer

0 votes
Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2019

Yuvi,

  You can create a scriptrunner listener that fires on the event issue link created.  In the listener you can then see what issue links are on the issue and if the one created already exists you can remove that link.  You should be able to find everything you need here: https://scriptrunner.adaptavist.com/latest/jira/tutorials/listeners-tutorial.html

There is also a similar community post with an example to get you partially there. https://community.atlassian.com/t5/Jira-questions/How-can-i-Restrict-issue-link-create-for-current-project/qaq-p/973784

Brant Schroeder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 13, 2019

Suggest an answer

Log in or Sign up to answer