Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy labels from linked subtask to parent issue

carolina
Contributor
March 8, 2023

Hello,

I'm trying to create an automation that will copy the labels from the subtask to the parent taks. I've explored similar questions in the community but they are all based on having an issue type that = subtask, which isn't my case.

When I link an issue as "is a subtask of", I want to copy all the labels from that issue and add them to the linked parent issue.

So far I have:

  • When: Issue Created
  • Then: Re-fetch issue data
  • And: edit field issues, labels > copy labels from ____ but I don't have the option f subtask?

Additionally, if the parent issue has 3 subtasks linked, I want all labels from all subtasks to be in the parent issue.

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
March 8, 2023

Hi @carolina and welcome to the community,

I can help you with the first part of your question. You should create a rule like the following:

add labels.png

This rule will add all the labels from the destination issue (is subtask of) to the current (is parent of) issue.

Let me know if that helps.

carolina
Contributor
March 8, 2023

Hi Alex,

 

Thank you super much for your prompt reply! I feel like I'm almost there but a couple of things:

1. I don't have the option of types: Parent/Child in the 1st step When. I only Have "Subtasks" and "is-subtask-of" which is weird!

2. In the last step I also don't have the "Field to copy value from".

See below.

Could this be because I'm not a Jira Admin? I'm looking to get my permissions upgraded this week.´

Thank you!

Screenshot 2023-03-08 at 13.39.58.png

Screenshot 2023-03-08 at 13.36.15.png

Alex Koxaras _Relational_
Community Champion
March 8, 2023

@carolina you have to replace my link type with your link type. From what I see, what you've chosen is correct.

About the copy thing on the Edit Issue component, hit the three dots next to "dark label button" and you will see more actions :)

carolina
Contributor
March 8, 2023

Hi Alex,

Thank you!

I'm trying my best :( The "Field to copy value from" field will not show up. I've clicked the "..." button and whatever option I add it won't show me that field.Screenshot 2023-03-08 at 16.09.26.png

Alex Koxaras _Relational_
Community Champion
March 8, 2023

@carolina ah! Sorry, now I got what you mean and saw the missing field. This is a strange behaviour to be honest. If you select "copy" from the list, the field doesn't appear? Can you try from another browser and from an incognito window to see if you have the same results?

carolina
Contributor
March 9, 2023

@Alex Koxaras _Relational_ I've tried from an incognito window and Safari and still no "Field to copy value from" field :/ 

Do you think it's because I'm not a Jira admin? I'm an admin of the project though.

Alex Koxaras _Relational_
Community Champion
March 9, 2023

Hi @carolina 

No it's not because you are not an admin. I've tested it with a normal user, as a project admin, and he has no problem seeing that field. That field is also present on team managed projects. Maybe you don't see this field because you only have one custom field of type labels. Ignore this and continue with the rest of the rule,

carolina
Contributor
March 17, 2023

Hi Alex,

Sorry for the delayed reply.

Still can't make it work, I have the rule set but no labels are added to any new issues linked :( I even created Epic issues so I could have real parent issues and child issues, but the automation does nothing either.

Appreciate your attention.

Carolina

Alex Koxaras _Relational_
Community Champion
March 18, 2023

@carolina 

Paste your rule, as well as the audit log.

carolina
Contributor
March 20, 2023

Hi Alex,

I was able to make the automation work by changing the rule a bit! Find it below. Thank you super much for all your help.

Best,

CarolinaScreenshot 2023-03-20 at 12.42.46.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events