The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events