Automation setup to update Status and Epic Status in an Epic isn't working

Aimee Davies April 26, 2023

Screenshot 2023-04-25 at 5.57.11 PM.png

Hi everyone

I was wondering if anyone can help me. I want to be able to routinely run an automation that goes through my epics and if all child tasks are either marked closed or done, then update the fields for the Status and Epic Status of the epic those child tasks live under.

The screengrab is my current setup, I haven't used Additional Fields before and I'm not sure where in my syntax (or any other part of the overall setup) is causing the whole thing not to work. 

Notes - customfield_11602 is apparently the ID for my Epic Status field, I found that by hovering over and seeing what ID displays in the url at the bottom left of the screen. Same for the Status ID (6 being done in my project).

The purpose of this automation setup is to run every week so the Epic Pane in the backlog is clear of Epics that are essentially finished but not removed because of Jira finickiness. 

Thanks in advance for any help!

3 answers

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2023

Hello @Aimee Davies 

Try using the "fields" attribute just once. Examples can be found here:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

{
"fields": {
"customfield_11602":"Done",
"Status":"6"
}
}
Aimee Davies April 27, 2023

Hi Trudy, thank you I copying and pasting your solution but no dice I'm afraid 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 27, 2023

I found this post with an answer from @Chris Buzon  that says you can set the Epic Status field thus in an Edit action:

{
"fields": {
"Epic Status": {"value": "Done"}
}
}  
Like # people like this
Aimee Davies April 27, 2023

Oh my god, you are a life saver! Yes this worked. I couldn't figure out how to use this advanced section to also update the regular status but all I did was too add a new component that transitions the epic to closed - thanks to @Walter Buggenhout  for your comment!

Thank you both so much, I've been pondering this one for several days 😁

Like # people like this
0 votes
Aimee Davies April 27, 2023

If it helps, here's a few more screengrabs that show the insides of each section of the automation.

Trigger.jpgIfStatement.jpgScreenshot 2023-04-27 at 4.06.55 PM.png

I also tried this syntax in the Advanced box (correctly indented by using a json checker, but it didn't paste correctly in here)

{
"fields": {
"customfield_11602": {
"id": 10060
},
"Status": {
"id": 6
}
}
}

 

Any other ideas? 😅

I can do this manually with a JQL query and a bulk edit, but I wanted the automation to trigger every month / 6 weeks so I didn't have to bulk edit over time.

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 26, 2023

Hi @Aimee Davies,

Rather use the action transition issue (where you can define what status you want to transition the issue to) instead of edit issue.

I would not bother too much about the epic status, as that is being deprecated (see this Community article).

Hope this helps! 

Aimee Davies April 27, 2023

Hi Walter, thank you for your reply and the link! Although I gave it a test - I added the Done status to my epic issues in the workflow and when I set the status to Done it doesn't remove the epic from the backlog. 

Because I've exposed the Epic Status field in the issue view, I selected Done and this does remove it from the backlog pane.  

So I'm not sure what's going on there but I see the post is from 2022 😅

Suggest an answer

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

Atlassian Community Events