You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi everyone,
I used this guide: https://confluence.atlassian.com/automationkb/how-to-count-the-number-of-times-an-issue-was-reopened-using-automation-for-jira-1183682960.html
to automate the reopen counter on Jira, and when I checked it, it seems to work only for the first time I reopen a ticket. When I move a ticket from "Done" to "To Do" the second time around, the rule doesn't execute and the number of times don't change to 1. Anyone knows why?
@Yael Geffen,
Are you re-opening it the same way both times? Or is one of the times using an Automation rule?
Thanks,
Kian
Only the automation rule. I'm moving the tickets from "Done" to "To Do" or to "In Progress". First time it works, second time it doesn't.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please share a screenshot of your rule configurations?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yael Geffen
To ask Kian's question another way:
How are issues being re-opened from "Done" to another status? Is a person always doing that or does another rule sometimes do it?
And showing images of your entire rule and the audit log details showing the rule execution may also explain this symptom.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There isn't another rule that moves issues from Done to To Do or to In Progress, only this automation. Here are the screenshots of the rule configuration.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy @Kian Stack Mumo Systems , did my screenshots provide any insight as to why this is not working after the first reopen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for those images!
The most likely cause of this symptom is you have an incorrect smart value for your Reopen Count field. And so the value in the edit is null + 1 which always yields 1.
Smart values are name, spacing, and case-sensitive; when an invalid one is used, it only returns null rather than showing an error...in most cases.
To correct your rule, please use this how-to article to identify the correct smart value for your field. Essentially you identify an example issue with your field, call a REST API function with a browser tab, and then search for your field on the page. Once you have it, update the edit action for your rule.
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why do you think this is the incorrect rule? I copied it from the guide on how to count the number of times an issue has been reopened and this is the rule they specified.
Also, it's important to note that I'm not a developer, I'm a beginner product manager with no technical background, so I didn't completely understand your answer there :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries, as we are all learning all the time :^)
I was suggesting that the smart value is incorrect. The smart value is name of a field the rule uses to access the information. Every field has a displayed name (on the screen), a smart value, and a custom field id. And sometimes the displayed name and smart value are different.
And...that guide is incorrect, as it shows two different names for the field, which certainly could lead to confusion. I will give Atlassian feedback on the article to help them fix it.
If you use that how-to article it will help you find the correct smart value to use. To paraphrase the article...
{{#=}}{{issue.customfield_yourNumber}} + 1{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your detailed response. However, it looks like it didn't change anything, it counted the first reopen but not the following ones.
Here is the rule after the update:
Here is the history of the test ticket:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you please also post the audit log for the rule, expanding the details for any time the rule was triggered? That will help to compare that information to what you show in the issue history.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was asking for the details of the rule's audit log, not from the issue view point.
You may find the details of the audit log by:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.