Field Filling Condition

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
Accepted answer

I solved the problem.

Variable is called: issue.status.name.

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
Vasiliy Zverev Community Champion Mar 13, 2016

Condition is some boolean expresiion writen on Groovy. 

Do you need some help with code?

Yes, if it's possible. 
I would be grateful.
Vasiliy Zverev Community Champion Mar 15, 2016

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

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

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

Tell me please. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,740 views 17 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you