Forums

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

Jira Automation to remove Parent's label from child issue

Neville August 18, 2023

Screenshot 2023-08-18 at 7.12.43 PM.png
I already set the if conditional but I dont know how to set the edit action.

I try the additional fields.
{
"fields": {
"parent": {
"fields": {
"labels": []
}
}
}
}


But it wont work.


Thanks

1 answer

1 accepted

3 votes
Answer accepted
Ste Wright
Community Champion
August 18, 2023

Hi @Neville 

Can you clarify how the rule is meant to work?

  • Is there a specific label which is meant to be removed? If yes, how are you locating it?
  • Or, are you looking to NULL the labels field based on the parent?
  • Or something else?

Ste

Neville
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 18, 2023

Sorry for not provide sufficient information initially.

 

Scenario is

When task is change the status to done, it will remove the parent(epic) 's specific label (Pending_PRD_Development) and add a label (PRD_Done)

 

Thanks

Ste Wright
Community Champion
August 18, 2023

Hi @Neville 

You need to refer to the Epic via a Branch - so the rule is trigger from the child issue level, and actioned on the parent.

The rule might look something like this:

  • Trigger: Issue Transitioned
    • To Status = Done, Will Not Do, Duplicated
  • Conditions: Populate as required, based on your needs
  • Branch: Related Issues
    • Type = Epic (parent)
      • Branch-Action: Edit Issue
        • Field = Labels
          • Add = PRD_Done
          • Remove = Pending_PRD_Development

Let us know if this helps resolve your wider need - or if you need any additional instructions, let us know too!

Ste

Like # people like this
Neville August 18, 2023

Works perfectly.

Thanks for your great help

Like Ste Wright likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events