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

Generate numbers in custom field in JWM

Leena Pratheepan
Contributor
December 7, 2023

Hello,

Can you generate numbers in Jira?

For example, if we have a release process. If we move the ticket to "Approval granted", an approval number should be generated automatically.

Is that possible?

Thank you very much for your help in advance

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2023

Hello @Leena Pratheepan 

There is a RANDOM() math function that can be used in Jira Automation rules, but it only randomly selects a value between 0 and 1 to sixteen decimal places, like these:

Screenshot 2023-12-08 at 8.42.04 AM.png

You could add more math functions to that to, say, multiply by 100 and then round the number to get an integer value.

Leena Pratheepan
Contributor
December 8, 2023

Hello @Trudy Claspill 

Thanks for your answer. But the numbers should be in the right order. I would like to create release 1, release 2 etc.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 8, 2023

I see.

You could use a custom field to keep track of that number in each issue. You could use an Automation rule triggered on the change of the status of the issue. Then in the rule you would retrieve a list of all issues where that field was not blank, find the issue with the largest number, add 1 to that number and insert the new number into the field in the issue that triggered the rule.

Leena Pratheepan
Contributor
December 8, 2023

@Trudy Claspill  That sounds interesting. I will try it :)

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events