Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JETI - only email when condition is true?

NathanG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 29, 2013

One of my project admins is asking the following:

"Can we send a customized email when issues are marked as resolved, but only for issues with a certain component?"

We've purchased JETI, but I don't see any options to only send an email notification when a certain condition evaluates to true.

I suppose I can do this by having two separate transitions from my "In Progress" status to my "Resolved" status... each transition would be mutually exclusive... one transition for issues with component X, one transition for all the others.

That doesn't seem very scalable though (My workflows could get quite ugly quite fast for even a few conditional emails).

Is there a better way?

Thanks~!

3 answers

1 vote
Tibor Hegyi _META-INF_
Atlassian Partner
January 9, 2014

Hi, what Michael was referring above was the following:

- configure JETI Event notification for Issue Resolved event

- in the JETI Notification Event screen, you can set a JQL filter like "component = MyComponent". This will make sure the event is processed only for issues matching the JQL filter

- Assign the JETI notificaiton to your project via a Context

You may want to disable or adjust JIRA Project Notification Schemes.

Having done the above, when you execute the Resolve transition, the workflow fires Issue Resolved, JETI will check if the issue matches "component = MyComponent". If so, it sends out the email notification, otherwise not.

Hope this helps.

Tibor

Michael Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2014

Exactly... Just put another filter in yesterday cause developers were getting too many emails. I can't imagine how long that would have taken with only using JIRA's notification abilities.

Keep up the good work Tibor.

0 votes
Mike Sorensen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2013

You should create an 'auto' Transition that has your criteria in a set of Conditions.

https://answers.atlassian.com/questions/49747/what-is-your-most-valuable-jira-trick

You could have a field that indicated if the email was already sent to prevent it from re-entry.

0 votes
Michael Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2013

How are you invisioning the email to even be triggered? Via workflow? Time driven?

Regardless, in the JETI notification is a jsql filter that should allow you to define additional filters to apply to prevent this issue from being emailed out.

NathanG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2013

I was envisioning the email to be triggered by a workflow transition.

But, I only want emails to be sent for issues that match a certain criteria.

=-=-=-=-=

I'm looking in the "The Email This Issue Post Function Plugin" and I don't see any ability to add a JSQL filter.

Am I missing the option? I have JETI but I don't see the option to only send an email when a condition is true.

Thank you!

Michael Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 30, 2013

Sorry for the confusion. Where you are looking is where you choose which notification to trigger.

Then go to the JETI configuration... Notifications... Events...

Inside these events is there a jsql option. Give it a shot.

NathanG
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2013

So, do I even have to configure a Workflow Transition Post function?

Or do I just go JETI > Notifications > Add Template > Edit the events for the template > Add an "Issue Resolved" event type > edit the JQL, and it will magically send emails when an issue resolved event is fired AND the issue matches the JQL?

Michael Simon
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2013

Actually you can just use the Event Type. I spoke too soon about the post function.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events