You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I have a Kanban project with a specific workflow and what I need is that in the CREATION of a issue, depending on a custom field, Jira sends an email to specific addresses.
Looking at the postfunction in the workflow I see that on the status "Created" I cannot put any condition (where I can set for a specific value of a custom field send the notification to someone, if that custom field has another value, send it to another person). However, in other workflow status (after de "creation") I do can.
Below the step in the workflow and the impossibility of creating a postfunction based on a condition.
versus:
where I can add a condition (depending on the value of a custom field) with a postfunction (send email)
Is any other way to make this condition as soon as an Issue is Created?
On the other side, on the "Notifications" section, I can create emails depending on the issue status for specific custom field, but it does not appear in the list all the custom fields, because there are only "Users custom fields"
Do you have any solution?
The Jira is: Jira Software 8.6.1 Server version.
Thank you in advance
Hi @Monica Ferrer ,
If you have a JWME plugin, you can use a postfunction - Email Issue Post-function. This can be sent based on condiitonal execution.
With script runner - you can use Fires an event when condition is true [ScriptRunner] . This option Fires an event that can be picked up by a notification scheme, in order to send mail only under certain conditions, eg Priority is Blocker.
I hope that helps.
Regards
Niran
Hi Niran,
Thanks for the response. I already installed JMWE plugin, but I still see no conditions available on the "Create" issue status. I only see postfunctions.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Monica Ferrer - You must use postfunction - Email Issue Post-function. While configuring this post-function , you will be shown an option "Conditional Execution". You can add your condition there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Niranjan. How do I generate the condition? I want custome field "Producto afectado" is equal to a "value". Where I should put this value?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Monica Ferrer ,
Try with issue.get("customfield_19102")== value
Replace the field value as requried.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Niranjan ,
I have configured this on the "Create status"
And when I create the issue I get the following message:
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.
Hi @Monica Ferrer ,
I am sorry. I missed your reply. Can you try to put the value between quotes?
issue.get("customfield_19102")== 'value' or
issue.get("customfield_19102")== "value"
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.
@Monica Ferrer I tested the conditional execution part and it is working as expected. Triggers an email. The error message says it is due to the unsupported content entered. Kindly check the values entered for all the fields in the create issue screen.
Something like a text value on a number field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Niranjan,
Great, I already resolved the issue testing different options and finally it triggers.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Monica Ferrer That is a great news. Kindly accept the answer so that the post will be marked as SOLVED. Thank and Good luck
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.