Hi ,
we have to trigger the mail based on the custom field value changes during the transition ..
is it possible ?
we are using customized workflow using JIRA workflow toolbox .
while changing the custom field value we have changed the team to allocate the issue .
for that we used set field as a function of other field values .
is it possible to trigger a mail based on this post functions ??
please suggest us ..
Yes, it's possible. You can do it in 2 steps:
1) Use "Set a field as a function of other fields" post-function with a configuration like this:
conf-0.png
Setting rules in the example are:
a(DW)toString(usersInRole("Role A")) a(Technology)toString(usersInGroup("Group A")) a(Delivery)toString(usersInGroup("Group B")) a(.*)toString(usersInRole("Role A") UNION usersInGroup("Group A") UNION usersInGroup("Group B"))
Where:
This post-function stores into virtual field Ephemeral string 1 a comma separated list of usernames.
Note that the last setting rule is a kind of else rule that will be executed only if none of the previous ones is matched. This setting rule also illustrates the way to obtain a list of users from more than one group or project role.
2) Use "Send an email" post-function with a configuration like this:
conf-1.png
Once configured, your transition should look like this:
conf-2.png
Do you want to send an email only when a certain custom field has changed during transition execution?
we are having the custom field in the name of present team .
present team have the values :dw,tech,runtime
when i choose the dw the mail will trigger to certain group of people
if i choose tech then mail wil trigger to some other group ..
is it possible ..
Is it possible to display the custom field value in the mail body content .
Yes, you simply have to insert field codes with format %{nnnnn}. Use the field code injector (select list) available below the Email's body text area. Field codes will be replace with their corresponding field values at execution time.
Hi Fidel ,
we have configured the mail and the mails are triggered based on the requirement .
In this we are facing the issue is triggering the mails to JIRA administrators also .
is it possible to send mail except the JIRA administrator group .
my conditions are :
a(DW)toString(usersInRole("DW Lead") UNION usersInRole("DW Developers") UNION usersInRole("Delivery Lead") UNION usersInRole("Delivery Developers"))
inside the roles we added the administrators for super admin access .
Can you please suggest us .
Hi Fidel,
I need some suggestion once again for this ..
is it possible to send the mail to two custom field values and one role persons and also i need to exclude a single user which is present in the role .
Taken this example :
Here i have to add assignee and also reporter and also another one user custom field values members and need to remove the below user group .
How can i do this ??
a(DW)toString(usersInGroup("SQ_DW_lead")) + ", "+ %{00003}
Scenario 2 :
Here i have to add assignee , reporter and also another one user custom field values members and need to remove the single user present under this project role or user group for mailer
a(Partner)toString(usersInRole("Partner Lead") EXCEPT usersInGroup("jira-administrators")) + ", "+ %{00003}
Please help me to close this .
@Fidel,
Hi @rTrack Support,
Scenario 1: Add assignee, reporter and a user custom field and remove a user group.
a(DW)toString(usersInGroup("SQ_DW_lead") EXCEPT usersInGroup("group_to_be_removed")) + ", "+ %{00003} + ", " + %{00006} + ", " + %{nnnnn}
where:
Scenario 2: Add assignee , reporter and also another one user custom field and remove the single user
a(Partner)toString(usersInRole("Partner Lead") EXCEPT toStringList("username_to_remove")) + ", "+ %{00003} + ", " + %{00006}
where "username_to_remove" is the user name of the user you want to remove.
More simple:
a(Partner)%{00003} + ", "+ %{00006}
or also
(Partner)%{00003}, %{00006}
Thanks for the quick response fidel..
It looks like you're new here. Sign in or register to get started.