Forums

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

How to set the value of a custom field to 0 every time a new sprint is started with automation

Sierra Larsen October 10, 2022

I have a custom field set up that incrementally increases the value every time an issue bounces from QA back to a status called changes requested. 

{{#increment}}{{issue.Bounce_Per_Sprint}}{{/}} 

 

So that works.  What I want to do is clear that value or set it to 0 for any issues that carry over into the next sprint.  I've tried variations of {{clear}}, set, "0", null, and I don't even remember what else at this point.  I've also tried setting the default value to 0 and referencing that.  I keep getting this error:

Error.PNG

 

Please help!!  Thank you

1 answer

1 accepted

1 vote
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.
October 10, 2022

Please show us the details of the rule you are using to try to reset the value.

The message provides the explanation. It appears that after using the Start Sprint trigger you may have next added the Edit Issue action. In between those you need a component to specify which issues need to be edited, such as the Branch/Related Issues/Issues in the Sprint component.

Screen Shot 2022-10-10 at 11.08.54 AM.png

Sierra Larsen October 10, 2022

Thank you for the reply.  I added the branching you showed, but still erroring.  Here's what I have.  

Capture1.PNGCapture2.PNGCapture3.PNG

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.
October 10, 2022

Hi @Sierra Larsen 

Please compare your rule image to the example Trudy showed...

Your action for Edit Issue is outside of the branch, and so the issue is not "visible" to the edit.  To fix this, drag the action up/inside of the branch and try to retest.

Kind regards,
Bill

Like # people like this
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.
October 10, 2022

Exactly!

Screen Shot 2022-10-10 at 4.47.25 PM.png

Like # people like this
Sierra Larsen October 12, 2022

Thank you both!

Suggest an answer

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

Atlassian Community Events