Forums

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

Postfunction condition: Assignee = Userx

Urszula Forenc
Contributor
April 10, 2019

Hi, how can I add a condition in "Send a custom email" postfunction that chech if assignee is a user "uforenc"?

issue.assignee = 'uforenc' or sth else?

 

Thank you

2 answers

1 accepted

1 vote
Answer accepted
Antoine Berry
Community Champion
April 10, 2019

Hi @Urszula Forenc ;

issue.getAssignee().getKey() == "uforenc"

should work fine (assuming you want to work with the user key).

Antoine

Urszula Forenc
Contributor
April 10, 2019

Hi Antoine,

it works, thank you very much :)

 

Ula

Like • Antoine Berry likes this
0 votes
Tansu Akdeniz
Community Champion
April 10, 2019

Hi @Urszula Forenc 

If you mean Script Runner's "Send a custom email" post-function, please try this one.

issue.assignee == 'uforenc'

image.png

Regards

Urszula Forenc
Contributor
April 10, 2019

Hi Tansu,

I tried it, but with no result. Only this works:

issue.getAssignee().getKey() == "uforenc"

/ as Antoine mentioned.

Thank you

Ula 

Suggest an answer

Log in or Sign up to answer