Field Filling Condition

Ilya Bakumtsev March 13, 2016
Good afternoon. 
Tell me how to set: Script Listeners - Send a custom email, and how to fill the Condition field. 
What would the transition to a certain status outgoing messages. 
Thank you.

5 answers

1 accepted

0 votes
Answer accepted
Ilya Bakumtsev March 15, 2016

I solved the problem.

Variable is called: issue.status.name.

Ilya Bakumtsev March 15, 2016

Yes.

For example:

 Condition for priority: issue.priority.name == 'Major'

Condition for type: issue.issueType.name == 'Bug'

What name is for variable type Status?

 

0 votes
Ilya Bakumtsev March 14, 2016

Yes, but I did not find the name of a variable, which is responsible for the status of the request.

Tell me please. 

0 votes
Mark McCormack _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2016

Hi Ilya,

Have you tried working your way through the ScriptRunner documentation for Script Listeners?

Another useful link is the Send a custom email which is done in a similar way.

I hope that helps,

M

0 votes
Ilya Bakumtsev March 13, 2016
Yes, if it's possible. 
I would be grateful.
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2016

As I anderstand you need to make sure than an issue will be into specified status after transition?

0 votes
Vasiliy Zverev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 13, 2016

Condition is some boolean expresiion writen on Groovy. 

Do you need some help with code?

Suggest an answer

Log in or Sign up to answer