We have a customer request as below.
We have a custom filed naming 'Linked Issue Id'. Whenever i link any user story to to current issue the custom field 'linked issue id' should get updated automatically with linked user story ID.
If you have the ScriptRunner plugin, you could write a scripted field which looks at the links and returns the ID value.
You could write a plugin. The challenge is that there are no events which are triggered when a link is added. Thus, you will probably have to do something like what the scripted field does, and look at the links each time your field is requested.
We took a slightly different approach and created a plugin with a "linked" field type. When an issue Id is entered in the custom field, the plugin automatically adds a link to the issue. You could do the same thing with a ScriptRunner scripted listener
I mention ScriptRunner, because that's where I have experience. I believe you could take similar approaches with another plugin, such as Kepler JJupin or custom fields.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs