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

"Update Issue Custom Field" support for user fields

kmcnamee October 25, 2018

We want to send emails to a specific user when an issue is in a specific state. The notifications scheme does not have this granularity. So I tried creating a custom field that was populated with a user/email during transition to the state and cleared once the issue leaves that state.

The notification scheme only accepts "User Picker"s for notifications so the custom field has to be a User Picker. Next I create a Post function to populate the field. This is where I am stuck, the only user I can pick is %%CURRENT_USER%%. 

Have a missed something? Am I going about this the wrong way? Using Jira Cloud.

Cheers,
Kevin

 

2 answers

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
October 25, 2018

Hello,

When you add this post function you have a field to enter the value for your custom field. Enter there the name of the required user.

kmcnamee October 25, 2018

What value do I enter?

Is it the email address of the user or an actual "user name"?

Alexey Matveev
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.
October 31, 2018

it is the name of the user. For example, admin

kmcnamee October 31, 2018

OK. This worked if I added me as "kevin.mcnamee". Nice.

Alexey Matveev
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.
October 31, 2018

If my asnwer helped you, kindly accept my answer.

kmcnamee October 31, 2018

After a little more testing, this works very nicely. Thanks!

Alexey Matveev
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.
October 31, 2018

You are welcome!

0 votes
Mattias Ohlsson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 31, 2018

I would create a filter, with your specific validation rules, -> state you want to watch for your issues. With this filter I would then create a subscription with your wanted regularity -> Daily, weekly, or hourly. Then you get mails when you have issues in that state, and you can take actions.

Cheers, Mattias

kmcnamee October 31, 2018

OK, I created a filter that displays issues that were updated within the last minute (updated >= -1m). I then created a subscription that sent emails every minute (0 * * ? * *). This will ensure that users will get information immediately. The subscription frequency must match the filter time limit (i.e. one minute) so that users do not get notified more that once about an issue that was updated.

When I choose recipients I have to choose a JIRA group. So I will need to set that up.

Updates to an issue can be made in the Description field or as a comment. Description can be included as a column in the filter. However, without a column for comments (or more specifically 'latest comment'), the email will not include information added there

kmcnamee October 31, 2018

I will go with the custom field solution this time. The resulting emails are more user-friendly. Thanks for the suggestion!

Suggest an answer

Log in or Sign up to answer