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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,558,930
Community Members
 
Community Events
184
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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 05, 2022

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