Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create auto-increment field based on Issue type ?

Rakesh Govardhan August 9, 2018

need to created auto-increment field when a new issue of the same issue type is created. So that it acts like a unique code for a particular issue type.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 10, 2018

This requires code, and it's not simple.  Also, I can't quite describe what the code will need to do because I am not sure exactly what you are trying to achieve.

I understand "counter by issue type", but I have a couple of other questions:

  • Where?  Is this a field that should be put on all the issues?  So that each issue has a number indicating that it was the n'th issue of that type?  Or is the intention a field somewhere else?
  • Why?  What is the problem you are trying to solve with this?  I suspect this is a clunky way of doing something your users don't really need at all, so explaining why you're trying to do it may lead us to a better solution to the actual need or problem.
Rakesh Govardhan August 10, 2018

Currently we have IT project which contains different issue type like incident, service request, problem and Software Enhancement. We want to have separate sequence number for the issue type software enhancement alone. So that when we move development task through change management system we have proper sequenced task id rather than issue key number.

More over the sequence number in change management system is of length 5 (i.e., maximum it could go up to 99999) already our issue key number has reached around 50,000 in 1 year time though hardly we could have done only 600 to 700 development tasks.

In case if we have separate field to have unique number for development task. we can use that number as our task id.

For your information right now we are using Issue key number as task id for all the development task.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events