Please advise how to use a post function in a workflow to carry over the ticket A's labels to the linked ticket B when closing A as a duplicate to B.
Hey @Eric Yang , are you on Cloud and are the duplicates usually created manually?
A preventive measure could be this addin I've just shipped, which warns users in case they create duplicates: https://marketplace.atlassian.com/apps/1224559/no-duplicate-issues-jira-cloud
Hi Eric,
I can confirm with ScriptRunner for Jira Cloud you could loop over the linked issues and then call the Edit Issue rest API to set the labels from the first linked issue to the next linked issue when a linked issue is closed.
I can confirm we have an example Script here which can be run on the script console and shows how to copy the labels from one issue to all its linked issues and you will be able to use this script as a reference guide to help create the script that you require.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eric Yang
I think that it might also be possible using the built in Automation rules as well. When updating the fields you can use "Additional fields" to update labels using JSON. I made a video on this topics if that helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ravi Sagar _Sparxsys_ Great video! How can I adapt this to copy labels from one issue to another when using the Issue Linked trigger?
Here's what I'm doing so far:
Any help would be greatly appreciated!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.