I am in the middle of trying to create a script/automated task to email a customfield user or comment with reference to a custom fields once an event has been triggered.
The process is;
1. When CustomField1 (Days until..) reaches below 60 an event is triggered
2. CustomField2 (Manager) will then be selected from its UserPicker field and emailed or tagged/mentioned in a comment about this (either way works)
I have tried using automation, however can't find a way to grab the user and email them, or find a way to reference the selected User from the CustomField into a comment.
Any advice would be greatly appreciated.
What are you using for the automation? Hard to give an answer without that information.
That said, if you are firing a custom event, you can just add a notification rule to the notification policy to that event that can email users in a user picker custom field.
We are using automation for Jira Lite.
I was using a jql query to schedule a comment action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are using the "Lite" version, you are limited in that you don't have access to
https://docs.automationforjira.com/getting-started/getting-the-right-version.html#pro-vs-lite
Which makes this a little difficult. :)
But you do have access to the publish event action. So you can leverage that.
So the automation will run on its schedule, come up with the list of issues, and for each one fire/publish the "Coming Due Soon" event, which will trigger an email to the user listed in the custom field.
If you end up getting the full version of automation, you will have options to use the send email or comment on issue action. and you can look at using "Smart Values" to get the user information to email as well as customize the email more.
(note I am assuming Server version since you didn't say cloud. If you are using cloud then you have access to comment and email, but not publish event, so then this doesn't apply.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.