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 help making a custom field that increases numerically

Hello Everyone,

I have a request to make a field for a Document ID. The requirements for creation of the issue, :

1. This field will be set as 5 digits so first issue would show 00001 and increase by 1 on every other issue for that specific issue type

2. the number would be followed by a dash and two letters that are static

So the final look of the field would be: 00001-XX and the next issue would be 00002-XX, and so on.

Any scripting help would be fantastic as I'm a novice with scripting.

Thank you!

1 answer

1 accepted

2 votes
Answer accepted

I would stay well away from this, it's not really a good design.  I would turn the question on it's head, not necessarily asking "why this design", but "what are the benefits of having this document id?". 

The document is a Jira issue, which already has a unique ID that is more useful (you can search for it directly rather than in fuzzy text searches, construct a url for an issue from it, and it's displayed and used everywhere in Jira by default - the end of links, default searches, roadmaps, and and and)

I think the question here is whether there are any benefits to doing something this clunky?  What do your end users get from it?  They're not going to talk about this id when referring to issues, they're going to use the issue key.

I'm not saying "no", I'm just checking that it really is worth putting time into it before suggesting anything.

Thanks Nic - that's exactly what I was looking for and was able to present the right solution using the Jira ID.

Like # people like 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