Hi All,
i am creating an automation to send Release approver emails, which i have now setup correctly based on the document below in an exact manner.
How to send emails Approvers of Jira release using Automation for Jira | Jira and Jira Service Management | Atlassian Support
what i am trying to figure out is an addition
1. when I have multiple release approvers, i want to be able to list out all the approvers in an email content so the approver knows there is multiple approvers.
and if possible, send a single email rather than sending each approver a separate email
currently i have the branch "For each" smart value to obtain a single account id via a web request (as stated in the document above), which then sends an email to the account
if there is multiple approvers, it will send an individual email each.
this part is working fine but wish to enhance this a bit more
unsure if there is a way to consolidate the branching so i can send only 1 email to all approvers. if possible, contain the 'for each' output into a variable so that i can reference it to send a single email rather than multiple?
For more context, would you please post images of the following:
Until we see those...
I suspect the challenge is because the email address is not provided directly with the approvers, each must be found individually (with the branching) and so cannot be gathered together for a single email. Seeing the specifics of your rule will confirm this so the community can suggest options. Thanks!
Kind regards,
Bill
thanks Bill
the rule is setup as per the image below. taken from the document as my current rule has a few extra steps and variables that i am trying to figure out on something else
my audit log looks like this for a successful run. ive blacked out the aspects around create variable step im including and accountID data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the additional information, @Anthony Pugliese
Unfortunately, the {{issue.fixVersions}} smart value does not include the approver information...and, when the approvers are found using the Get Version endpoint, that does not include their email addresses either.
And...the Bulk Get Users endpoint does not return all email addresses, and the Get User Email Bulk endpoint cannot be called from a rule (only from Forge, an app, etc.)
After a bit of searching, I could not find any suggestions in JAC backlog for this need.
Let's consider a workaround using a placeholder work item...The general idea is to duplicate the approver users in a custom field in the placeholder work item for later use.
The first two rules, version created and version updated, could be merged where the update rule detects when the work item is missing and first creates it before proceeding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy
thanks for the help, looks like ill have to be content with multiple emails going out for the short term as creating a global field is not going to be possible
was hoping to do this all directly through the release function, but looks like its limited and i am probably doing as much as possible
just spitballing.....is there anyway to use a for each branch, to set a variable? and every variable created compares what is to be created and sets the variable as unique? Variable+1, Variable +2? and max it out to 5 variables (being i dont think ill need more than 5 approvers at any one time) and therefore i can always hardcode the variables to the single email comms
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Anthony Pugliese -- Short answer for your follow-up question: no.
Branches which could be on more-than-one-thing process in parallel and asynchronously...with no guarantee of when the branch will finish up until the last step of the rule.
Any variables created within the branch only exist while each specific item is being loop-over, and they vanish afterwards. Thus, branches cannot be used to accumulate / gather results for use after the branch.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy
thanks. guess i am going back to the drawing board or keep voting on better release functionality
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.