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,466,389
Community Members
 
Community Events
176
Community Groups

How to set a default value for description field in JIRA?

Our client's requirement for a certain project was to have default value for the system field "Description". I was able to implement this using Behaviours. The issue however is that once we type additional data in the description field, it doesn't show up after the issue is created. For example, if the Description field has value "Name", it shows on the create Issue screen however, if I enter my name ("Name ABC") and click on create, the created issue shows only "Name". Could someone please assist? PFB my behavior script.

def sfield = getFieldById(getFieldChanged())
if (getActionName() != "Create") {
return
}

def string = " Name "
sfield.setFormValue(string)

1 answer

1 vote
Vikrant Yadav Community Leader Aug 05, 2021

Hi @Sidney Ambrose  Welcome to Atlassian Community!

Kindly use the method suggested in this link :- https://mraddon.blog/2018/02/25/how-to-set-a-default-description-template-in-your-jira-tickets/amp/

 

Hope it works for you!

Thanks

V.Y

Hi Vikrant,

Thank you so much for the assistance. It worked when we had the script in initializer.

Regards,
Sidney

Vikrant Yadav Community Leader Aug 06, 2021

Great, Glad to hear it works for you :)

Kindly accept the solution, if solution works for you so that it helps others users having same query. 

Thanks

V.Y

Vikrant Yadav Community Leader Mar 18, 2022

Hi @Charlie  This method is for JIRA Server and JIRA DC version. For JIRA Cloud, this doesn't work. 

For jira colud, you can create Custom field and set Default value of that field. 

 

Thanks

Vikrant Yadav

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events