Hello,
I need to send email to users who are in a group user picker filed. The users can be changed. What API should I use to accomplish this?
Thanks in advance
Hello,
You would need a scripting app for it. You could use such appss as Power Scripts, ScriptRunner, Automation for Jira. All apps are different in API, that is why I can not give examples for all plugins.
But if you have the Power Scripts add-on, then your code would look like this:
sendEmail(
"projectmanager"
,
{#{Your group field anem}}
,
"Transition executed"
, currentUser() +
" has executed a transition"
);
You can find more info here:
Hello Alexey,
I prefer to use API, can you help with that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which API?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this one:
POST /rest/api/2/issue/{issueIdOrKey}/notify
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.
I get this error: (Approvers is several user picker field in JIRA, not in AD)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you would need to develop a program using Jira Rest Api. First get the value of the field for the required issue: https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/?&_ga=2.146847351.1131713726.1561299576-1149622764.1547637396#api/2/issue-getIssue
and then use the notify rest method to send a email.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.