Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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