Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to count the number of times issue made specific transaction?

I want to get number of times the issue made some transaction. 

Suppose my workflow has Ready to Retest--> Reopen. Now if 1 issues is marked as ready to retest but it was reopened, again after fixing that issue was marked ready to retest but again tester reopens the issue. 

 

Considering above scenario I want to know how many times the issue was reopened.(need its count) 

 

Thanks in Advance.

4 answers

0 votes
Elifcan Cakmak Community Leader Oct 26, 2018

Hello,

I don't think it's possible without any add-ons. For example with Script Runner plugin you can define a scenario like this:

  • Create a number custom field
  • Write a script that increases the field value each time the issue transitioned.
  • Add the script as a post function to your transition.

It is the best possible solution that I can think of on Cloud. 

Regards,

Elifcan

@Elifcan Cakmak Thank you for the valuable suggestion. But can I get the count of transactions which are already made.  

Elifcan Cakmak Community Leader Oct 29, 2018

Hey, 

I'm afraid there is no automatic way to get that number. You can check issues one by one, you can see the transitions made on the transition tab but I'm sure you already know that and it is not an ideal solution. I'm sorry I couldn't be more help.

Regards,

Elifcan

Hi @Elifcan Cakmak ,

Regarding your solution with ScriptRunner:
 I am new to JIRA and ScriptRunner - do you have an example of how can that script look like?

Hi @Akshay Laykar

I found a free plug in https://marketplace.atlassian.com/apps/27136/jira-misc-custom-fields?hosting=server&tab=overview

that has the functionalty of your needs.  You can check that one. As Elifcan mentioned above, its  not easly possible to find transtion count without searching history tab.

 

Formula-based Calculated Custom Fields

 

Transition date/time and transition caller

 

JQL functions

Create calculated custom fields that evaluate a Java expression to compute the value of the field. Can be of type Number, Date or String.

Create custom fields that will hold the date/time or the name of the caller of any transition in your workflow.

Additional JQL functions you can use in your issue filters.

More details

The Jira Misc Custom Fields plugin's objective is to provide several new types of custom fields for use in custom Jira workflows as well as useful JQL functions.

Included custom fields:

Included JQL function:

  • currentUserPropertyAsList: a JQL function that returns the value of a property of the current user, transforming comma-separated values into a list of values.

@Burak Kocak Thank you for your suggestion too.. but may be Jira Misc Custom Fields plugin is available for server and we are using cloud version. 

hey Burak ... I know it's a lot time ago, but JMCF plugin is not free anymore ... do you have other suggestion to do the same for FREE ? thx !!!

Hi Akshay,

Do you have Jira Misc Workflow Extensions plugin in your Cloud instance? If yes,

  1. Create a custom type number field "Reopened count"
  2. Add the Increase value of field post-function to the "Reopen" transition (https://innovalog.atlassian.net/wiki/x/PICcBQ) 
  3. Select the "Reopened Count" field
  4. Save the post-function
  5. Publish the workflow.

Now every time the ticket is reopened the "Reopened Count" field value increments by 1.

Hope this helps,

Regards,

Radhika

Found another simple way to do this: 

Set up a rule on your project to listen for a specific issue transition (either using JQL condition or the transition options, then add an Edit issue action.

Select the field you want (My Customfield) to increment and use the following value:

{{#increment}}{{issue.My Customfield}}{{/}}

This will increase the value every time the issue goes into that status.

 

Found this from @Nick Menere

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-may-I-increment-a-custom-field-s-number-on-a-specific/qaq-p/742636

Hi @Veronica Mapes , I was trying to implement your solution and I continue to get this error: Error while parsing additional fields. Not valid JSON.

Would you mind looking at my screenshot and tell me where I'm going wrong? I know it's user error I just don't know what I'm failing to do. 

Thank you, 

ChristineJSONerror.png

@Christine Corona - It looks like you have spaces between the brackets, though I can't be sure. If so, try removing those. If not, I'm not sure =/

{{#increment}}{{issue.My Customfield}}{{/}}

Thanks @Veronica Mapes, I indeed had spaces so I removed those. I also needed to remove the value from the Additional fields section and place it only under the identified custom field section, then it worked perfectly!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you