Forums

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

How to concatenate various fields and add an auto increment number at the end to generate a key?

perlacantu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Hello,

When creating an issue, I need to generate a key picking element by element from different drop down menus and at the end, to generate an auto increment number, all that concatenated should give me that famous key, for example: E1 + E2 + E3 + 001(autoincrement), how can I do that, please?

 

Many thanks!

2 answers

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.
March 27, 2019

If you do decide to do this with a script, you will need to think of several things.

Field A + Field B + Field C is fine, but your autoincrement will need a place to store "last used" and you'll need to think about how it handles when a couple of people create an issue very close together.

And bear in mind the string is irrelevant to Jira and the people using it - they will be thinking in Jira keys because that's what they can search on, or jump to immediately.

0 votes
Joe Pitt
Community Champion
March 27, 2019

Nothing out of the box will do that. You'll need to look for a plugin or a scripting solution. 

Suggest an answer

Log in or Sign up to answer