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,294,703
Community Members
 
Community Events
165
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

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

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

Hi @Tcheunou Tchokomeni 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
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

274 views 0 6
Join discussion

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