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