Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

custom field email notification - Kanban Edited

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.

 

image.png

 

versus: 

 

image.png

 

where I can add a condition (depending on the value of a custom field) with a postfunction (send email)

 

image.pngimage.png

 

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"

 

image.png

 

Do you have any solution?

 

The Jira is: Jira Software 8.6.1 Server version.

 

Thank you in advance

1 answer

1 accepted

0 votes
Answer accepted

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.

image.pngimage.png

 

Thanks

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. 

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

image.png

Hi @Monica Ferrer ,

Try with issue.get("customfield_19102")== value

Replace the field value as requried.

Hi @Niranjan ,

I have configured this on the "Create status"

image.png

 

And when I create the issue I get the following message:

 

image.png

 

 

 

 

Hi @Niranjan,

Did you have the chance to check this?

 

Thank you!

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"

Hi @Niranjan,

 

I did as well but unfortunately did not work.

 

Kind regards

@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.

Hi @Niranjan,

 

Great, I already resolved the issue testing different options and finally it triggers.

 

Thank you!

Like Niranjan likes this

@Monica Ferrer That is a great news. Kindly accept the answer so that the post will be marked as SOLVED. Thank and Good luck

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

262 views 13 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you