Forums

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

Question regarding Behavior scriptrunner plugin

Rohit Mat August 23, 2020

Hi Team,

 

Can anyone help me here?

 

I have added default template in description field using behaviours scriptrunner plugin. So that people can add something in the template. But most of the users/people are not adding any value in the template. Now i need to force must to add something in the default template in create screen. Any idea how can i achieve this.

 

My template : 

def descriptionValue="""\
h4. Environment:

h4. Reproducibility:

h4. If reproducible, steps to reproduce:

h4. Actual result:

h4. Expected result:

h4. Additional information:
""".stripIndent() 

1 answer

0 votes
Dibyandu Roy
Contributor
August 26, 2020

 

I would suggest add these parameters(Env, reproducibility, actual result, expected result etc) a fields in create screen as field and make it mandatory. Add a post function on create to update the description field based on the values filled in the parameters. 

If users want to update the description later on, then in the edit screen, hide these fields and let user directly update the description.

Rohit Mat August 30, 2020

Hi Dibyandu,

Thanks, but every issue type will have different templates and in that case there will be lot of custom field which we don't want. So i just need to compare the template with description value(Create screen) so that if it is same then i can force the user to add some thing in the template.

Suggest an answer

Log in or Sign up to answer