Forums

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

How to count the number of times an issue was reopened using Automation for Jira

Nikolaos Vlachos
Contributor
September 11, 2023

This is regarding this article: 

https://confluence.atlassian.com/automationkb/how-to-count-the-number-of-times-an-issue-was-reopened-using-automation-for-jira-1183682960.html

 

The automation works perfectly but it only counts if the value is 0 and it changes it to 1 other than that. If you resolve the issue and move it back to reopen it doesn't go and add 1 more to the existing value of 1 so it will be 2 times reopened it just stays as 1.

Any idea how to solve that?

2 answers

1 accepted

1 vote
Answer accepted
Nikolaos Vlachos
Contributor
September 11, 2023

Found the solution. 

 

Just needed to replace 

{{#=}}{{issue.Re-Open Count}} + 1{{/}} 

 with: 

 

{{#increment}}{{issue.My Customfield}}{{/}}
DG Ops Support
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!
November 4, 2024

Hi~ can you assist to explain more regarding the #increment? do you mean something like this? quite new here, thanks

 

{{#+1}}{{issue.ReOpen Count}}{{/}}

Edit: Okay it is exactly mean, fix! Thanks man!

{{#increment}}{{issue.Re-Open Count}}{{/}}

0 votes
Joseph Chung Yin
Community Champion
September 11, 2023

@Nikolaos Vlachos -

Excellent you found your solution.  Important note to remember since automation rule will update your custom field (source of truth) when WF status changed, you want to make sure that the field itself is only present in the issue view screen - Therefore preserves the integrity of the field.

Often, one misses and allow the field to be editable outside of the source of truth.

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

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