Forums

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

Automation - Edit summary of cloned issue w/ active sprint name

Josh Allen
Contributor
June 5, 2024

I'm putting some final touches on an automation and it's running successfully, and now one of the last things I'd love to be able to do is edit the newly cloned issue summary with the name of the active sprint it's being placed into.

If not, the dev manager will have to go through a few dozen issues and replace the word "HIKE" with the active sprint name (Ex. Stack Rock). Not a huge task, but would love to automate it for him.

My guess is this will require some REST API, which is totally over my head and I probably won't do.

Here's my global automation which covers 40 projects

  1. Version created (Ex. Test Release 1)
  2. Clone template issue (Ex. TAP-58) from backloScreenshot 2024-06-05 at 11.38.12 AM.pngScreenshot 2024-06-05 at 11.38.19 AM.pngg
    1. Edit issue (Ex. TAP-62) - add to next unreleased version
    2. Edit issue (Ex. TAP-62) - add to active sprint on Core Master board (other project)
  3. And now i want to...lookup cloned issue (Ex. TAP-62) and edit the summary to add the active sprint name

The challenge is finding the active sprint. So I thought if I did a lookup of the new issue that was cloned (Ex. TAP-62) I could just update the summary with the active sprint. But what happened is that the summary of my template issue (TAP-58) was updated, although not with the active sprint. It just removed the word HIKE.

Thoughts that don't involve the REST API?

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2024

Hi @Josh Allen 

Once the rule is inside of that branch to the template issue, TAP-58, the edit acts on that issue.  There is no nesting of branches which would allow then branching to the most recently created issue.

Two possible workarounds are:

  • From this rule, use the REST API to update the issue (which you note not wanting to do)
  • Create a second rule, triggered on issue create, with conditions needed to detect this specific issue, and then make the edits.  This second rule will need to enable the "Allow Rule Trigger" option in the rule-details section to allow your first rule's actions to trigger it.

 

Kind regards,
Bill

Josh Allen
Contributor
June 5, 2024

YES!!!! 

I forgot you can have multiple rules and have them trigger each other. That worked like a charm. 

Thank you very much. My dev manager is gonna be so happy with this. A lot of time spared.

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 5, 2024

Awesome; I am glad to learn that helped!

Suggest an answer

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

Atlassian Community Events