Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to have a automatically generated unique ID value for a custom field?


Aside from Jira key, I want the Jira issues of my project to have unique IDs in the context of the issue type where they belong to. 


Jira Project

  • Issue Type
    • Jira Key (Custom Field)


Alpha Project (AP)

  • Bug
    • AP-1 (Bug-1)
    • AP-2 (Bug-2)
    • AP-3 (Bug-3)
  • Story
    • AP-4 (Story-1)
    • AP-5 (Story-2)
    • AP-6 (Story-3)
  • Task
    • AP-7 (Task-1)
    • AP-8 (Task-2)
    • AP-9 (Task-3)



Beta Project (BP)

  • Bug
    • BP-1 (Bug-1)
    • BP-4 (Bug-1)
    • BP-7 (Bug-1)
  • Story
    • BP-2 (Story-1)
    • BP-5 (Story-2)
    • BP-8 (Story-3)
  • Task
    • BP-3 (Task-1)
    • BP-6 (Task-2)
    • BP-9 (Task-3)

How to be able to achieve this?

Plugins? if scripting, which tools and where should I start?

2 answers

Hi Anne,

Since you are new here I was wondering why issue linking is not enough for you? (Or maybe since you are new you did not know about it).

If you are unhappy with the issue linking functionlality as maybe you wanted to be able to search by links, with Scriptrunner has a lot of issuefunctions which you can use to search throught the links or sort. (But I'm sure Nic can tell you more about it since it is from Adaptavist) ;)

Thanks for this info Lara, however, my question is not related to issue linking. 

What I want to achieve is to be able to have tracking IDs for each issue in the project specific to which issue type where they belong. 

Hi Anne, 

Have you checked out this add-on ? Its free and I thinks it sounds very similiar to what you need.



0 votes

You will need to find or write some code to do this. 

It won't be as simple as it sounds, as you'll need to think about how to store your sequence number and what happens if several processes all ask for the "next" number at the same time.

Thanks for the enlightenment. I agree with what you mentioned to consider such as where to get sequence number and for the several processes. 

I was just wondering if any plugins can do this functionality before I even dive in to coding the complex solution. 

I've yet to find a public add-on to do it.

I did run into one that was owned by a large corporation and had been written in-house.  As part of the engagement was to simplify their over-bloated system, we had a look at it and discovered that only the person who wrote it ever used it.  Everyone else worked off the issue key.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Agile

Master the art of thinking big, working small: A conversation with John Cutler

Hello all! It has been 20 years since the agile manifesto was introduced, and closer to 40 years since software development began moving away from a waterfall-type approach. While many teams have ...

1,855 views 10 36
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you