Forums

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

automation triggers

Tom Meyer August 25, 2020

I have an automation that assigns the epic, story points, sprint and assignee when a ticket is created in my project. We also have an email handler that auto creates tickets when an email is sent to particular address. 

Is there a way to *only* have the trigger fire if it comes from the email handler (the vast majority of the tickets) and not from a person creating it manually within Jira ? The problem is that if a person creates a ticket and they already know what epic/sprint/story points/assignee they want to use, the automation overwrites those values and that's not ideal. 


None of the existing triggers seem to be relevant.

2 answers

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
August 25, 2020

Hi @Tom Meyer  -- Welcome to the Atlassian Community!

As I recall, you needed to identify a JIRA user for email-generated issues.  Is that correct?

If so, could you add a user condition to your rule that limits edits to only those issues created by this email-generated source user?

Best regards,

Bill

Tom Meyer August 25, 2020

well .. yeah. that's exactly what I am trying to do but I don't see any trigger that is based on who/what user generates the ticket. the trigger as of now is just  the default 'Issue created'. Perhaps I'm just being thick.

2020-08-25 13_29_37-Project automation - PEAK6 Jira.png

Mikael Sandberg
Community Champion
August 25, 2020

The user condition that @Bill Sheboy is referring to is added after you select the trigger. Once you selected the trigger you can add condition, action and branch rule/related issue components to your rule.

Screen Shot 2020-08-25 at 11.41.10 AM.png

Bill Sheboy
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.
August 25, 2020

Yup, what @Mikael Sandberg said...

  • Trigger: issue created
  • Action: re-fetch (for safety to handle race condition errors and un-populated fields in the issue)
  • Condition: user condition to match reporter to the email-generated user
  • Action: edits for your fields...

 

__Bill

Like Mikael Sandberg likes this
Bill Sheboy
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.
August 26, 2020

Tom, you note that reporter will not work.  Is there any other information in the issues that is unique to items created by the email-generated ones?

If not, could you update the handler to somehow make them distinct, and so identifiable by the rule?

The other approach is to flip this problem around:

  • When an issue is created...
  • Check if any of the fields you plan to set are already populated; if so, bail out
  • Else, set the field values.

 

Best regards,

Bill

Like Mikael Sandberg likes this
Tom Meyer August 26, 2020

We figured it out by having the email handler use a new issue type that it and only it will use instead of just 'task' and then have the automation only act on that new issue type.

Like # people like this
0 votes
Tom Meyer August 25, 2020

Reporter unfortunately is set to the person sending the email so that won't work ... e.g. if I send an email to 'jiraticket', the reporter is myself and not 'jiraticket'.

None of the other fields show anything indicating that the ticket is generated by the email handler.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events