Hello Everyone
I create a new issue and create link between current issue and the new one from post function. Both issues are in the same project and with the same parent issue and accordanly with same security schemes
After transition is finished I can not see the link when open "old" issue but it's visible when open the new issue. Moreover, in old isse's history tab link creation is registed.
I can't reproduce such behavior everytime. it happend only for some "special" issues
Jira 6.2.7 / Scriptrunner 3.0.16 also, it has been happaning for early versions since 6.1.0
Kindly asking Community to help with ideas for fixing before I broke my mind
Issue links in Jira are not always necessarily reciprocal. Meaning, you can create issue links from one issue to another, and when looking at this second issue, you might not see that there is an issue link here. The current versions of Jira have changed this behavior a little. For example in Jira 7.8.1, by default all links are reciprocal when both issues are on the same Jira instance.
However back in Jira 6.2.x, that wasn't the case. Please see the documentation on Linking Issues - Jira 6.2 - Atlassian Documentation. From that document you can see there is a screenshot that shows when you create a link in the Jira UI, there is an option to 'create reciprocal link':
So I suspect that your post-function here is just not defaulting to create the reciprocal link. I'm not sure if this is something that can be configured in the post-function settings, since this is not something that Jira can do natively. So I presume this post-function is something that scriptrunner is doing in that version. If this isn't something that this version of scriptrunner can be configured to do, it might be worth looking into upgrading Jira since it appears that the current versions default to creating a reciprocal link natively now.
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.