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

Your Points Tracker
  • 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
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?
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

Auto Increment a number field of all the issues of a projects when I edit the number field of one is Edited

I want a script that will auto-increment the number field that is "Issue Ranking" having numbers from 1 to 100. So when I create an issue and manually number that issue say - 49(edit that issue ) then I need that the already existing 49 should become 50 and already existing 50 should become 51.. that is, it should automatically increment itself on the basis of what number I have selected in the recently created ticket.
similarly when I number the issue manually as 30 then already existing should be 31 and already existing 31 should be 32 and so on... .

can someone please help?



1 answer

0 votes

Ok, yes, you could use Scriptrunner to do this, but before you go down this route, I want to question why you're doing this.

What you are describing here is a form of ranking. There are two questions that jump out when I realised that it was ranking:

  • Why are you not using the ranking built into Jira Software or the queues in Jira Service Management?  (Is the answer "I only have Jira Core"?)
  • Your "solution" does not scale.  There's a reason Atlassian stopped doing what you're describing years ago and it's that your scheme gets exponentially less performant as you rank more issues.

However, those lead me on to the easier question - what problem are you trying to solve with this?

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