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 @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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.