Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

A dup to B: how to carry over ticket A's labels to the linked ticket B when closing A as a duplicate

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. 

4 answers

0 votes

Likely a ScriptRunner groovy scripted post function. But what if there is more than one linked duplicate issue?

0 votes

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

Hi @Ravi Sagar _Adaptavist_ 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:

Advanced Edit Issue Fields.pngAudit Log.png

 

Any help would be greatly appreciated!

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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

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

Events near you