create a document code based on issue type Edited

I need to create a document code in a customfield (document_code) that autoincreases based on the issue type. for example
I insert the first record with issuetype = bug -> document_code = bug-001
I insert the second record with issuetype = change request -> document_code = CR-001
I insert the third record with issuetype = bug --> document_code = bug-002
I insert the fourth record with issuetype = New Request -> document_code = NR-001

I insert the fourth record with issuetype = Change Request -> document_code = NR-002
and so on
Any suggestions?

1 answer

0 vote

I would implement a sequence per issue type and then a scripted custom field. The sequence value could be stored via ActiveObjects in the JIRA database.

You could do this with the ScriptRunner app.

I think I'll do it manually. Script Runner has a cash cost
Thank you for your suggestion

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

110 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you