Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I set default value to 'Summary'?

ClaireYang
Contributor
April 7, 2019

Is it possible to set default value to summary? Here is what I did, in behaviours add a new one, add 'Summary' as fields. And created a new initialiser, input as below:

def defaultValue = "something default"

Then I mapped this behaviour to my test project. But when I submit a new case in the test project, there was no default value in summary field.

Did I miss something?

 

Claire

1 answer

1 accepted

0 votes
Answer accepted
Tom _Automation Consultants_
Atlassian Partner
April 8, 2019
def summaryField = getFieldById(getFieldChanged())

summaryField.setFormValue("default value")

You need to put this in your inline script section in the Summary field part of the behaviour.

This will auto populate the Summary field with your default value.

ClaireYang
Contributor
April 8, 2019

thank you so much Thomas! It works!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events