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.
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
Here is another response that has information that can help you out. https://community.atlassian.com/t5/Jira-questions/ScriptRunner-Behaviour-to-limit-or-restrict-link-types/qaq-p/1250479
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.