Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,370,037
Community Members
 
Community Events
168
Community Groups

Auto generate Project Number

Hi,

 

I have a use case to create template for my client to create projects.

I have created a Issue-Type as "Project" and assigned to "My-Client's projects" project

So when I click on Create

Project Required * - My-Client's projects

Issue Type * - Project

I have a required field Project Number

So I give a number for the project, say in the format YY-XXX

YY is current year and XXX is the number starting 001 to 999.

For this year 22-001 to 22-999

My Question: How do I make the custom field - Project Number to auto populated with latest available number + 1

If there are no project available, it should start with 22-001.

If 22-345 is available , when I click on Create it should auto populate Project Number  value as 22-346.

Can you please help me here ?

Thanks

Shashi

1 comment

You will need to do some coding - I would recommend a post-function on the "create" transition that can do a search in the project for the current list of values of your number held on existing issues, and add 1 to the highest it finds, then add it to the field on the new issue.

Comment

Log in or Sign up to comment