You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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)
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
Kindly paste script at Initialiser
https://scriptrunner.adaptavist.com/5.6.8/jira/behaviours-overview.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vikrant,
Thank you so much for the assistance. It worked when we had the script in initializer.
Regards,
Sidney
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Vikrant Yadav , the method suggested also works for jira cloud ?
https://mraddon.blog/2018/02/25/how-to-set-a-default-description-template-in-your-jira-tickets/amp/
Thank for your help.
C.T.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.