Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Need auto incremented field once day complete.

Hi All,


I am looking for auto incremental field which will give me how many days issue stays in particular state.
I will clear the field in postfunction once status changed.

Eg: If issue created on 10-11-2018 and it is  "Open Status" then field should have value "2" as on 12-11-2018.
initially it will 0 (0+1+1)


I am using script runner as well.





1 answer

1 accepted

0 votes
Answer accepted


You would need an add-on for it. 

For example, you could use the Power Custom Fields Premium add-on:

You could create a sil field with a script like this:

return currentDate() - created;

Thank you Alexey for suggestion.

I am not looking for any specific status count, i want to capture days count at each status level.

In new status start count will be zero (0).

Is there any way to achieve this requirement through scriptrunner or behaviour ?



It is also possible, but you would need to create as many scripted fields as many statuses you want to follow.

Or you have to print all statuses with their values in one line.

Alexey thank you for suggestions,.


Got alternative , Automation for JIRA plugin solved my requirement.


Thanks again. :)

Hello @Amar can u please explain me how did u use "Automation for JIRA " for the same? How did u create the rule?

Suggest an answer

Log in or Sign up to answer

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