Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Scriptrunner pre populated comment field when changing the status

Szymon F November 12, 2019

Hi,

I am thinking about the best solution for the problem.

When I am changing the status from In progress into Done. I have a popup with comment field:

Screenshot 2019-11-12 at 15.49.09.png

May I pre-populate this field with information about tests fulfilled by the user.

For example:

Screenshot 2019-11-12 at 15.52.54.png

I am not able to use post-function for Workflows because it should work only for one team from 20 that use this workflow. So I thought about Listener or Behaviour from Adaptavist. But the easiest is not working for me:

 

def desc = getFieldById("comment-wiki-edit")

def defaultValue = """ XXXX """

if (!underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events