Forums

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

Specificy recipient for post-funciton notification with Scriptrunner for Jira Cloud

Tamir Mubarak June 2, 2023

Hallo dear community, 

I implemented a post-function notification with scriptrunner for Jira Cloud. 

Everything is working fine and as aspected which ist great. The only thing I wasn't able to figure out yet is, if there is a possibility to specify the recipient of the notification a little bit more. Unfortunately, I find the selection of recipients suggested by Scriptrunner a bit few and too limited.

In my Jira ticket I have a custom field (User Picker - single user) from which I want to take the notification recipient.

Is this even possible and if yes how?

Thank you in advance for your time and your help!

Best regards,

Tamir  

 

edit: I know that there is the possibility to notify a whole group, but I just want to notify one specific user (which will change every one and then, depending on the value in the User Picker field) 

1 answer

0 votes
Bobby Bailey
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.
June 2, 2023

Hi @Tamir Mubarak , 

 

This should be possible with a custom script. If you select the "Run Script" option, you have access to the Issue in the script context, so should be able to access your user picker field and write logic to define the list of users you want to notify. 

You can then use the Send notification for issue, which allows you to send an notification about that issue with a custom message to a custom list of users. 

I hope this helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events