Missed Team ’24? Catch up on announcements here.

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

Increment an ID number using Jira smart values

Samuel Stephens December 19, 2022

Hello,

I'd like to test out a few options for implementing an incremental ID either as a custom field or potentially an Asset Object database or attribute.

It needs to be in specified format with some variables that don't change and some that need to increment and then reset by year.

Example

(Task) ABC-XXXXX-YY

(Sub-Task) ABC-XXXXX-XX-YY

The first string XXXXX would be a number incrementing by one every time an specific 'task' issue type was created. The second string (including -XX) would increment based on a 'sub-task' issue type but inherit the parent task string XXXXX.

Example

(Task) ABC-00001-22

(Sub-Task) ABC-00001-01-22

(Sub-Task) ABC-00001-02-22

(Task) ABC-00002-22

(Sub-Task) ABC-00002-01-22

.....

I've started looking into Jira smart values and can do the incremental part with a math expression, I'm just not sure how to build this into a query that joins multiple parts together.

I'd also like to do it out of Asset Object preferably so I could maintain a bit of a database of which ID's correspond to each issue.

Understood if this can only be done out of a custom field however.

Both options will have to use a Jira automation to check the exisiting ID or create a new one and increment it.

Any help in figuring this out is appreciated.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events