It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

restrict issue link

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 Dec 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

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you