Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Check for attachements with Automation

IT-Studentenwerk Goettingen January 2, 2023

Hello,

i want to offer the possibility to submit files by the issue collector and generate a confirmation/warning mail.

My Way: in Automation:

  • WHEN: Process Created
  • Then Link Issue
  • IF: issue attachements are not existing 
    • THEN: send warning - Email
  • IF: issue attachements are exisiting
    • THEN: send confirmation mail

Althought the issue created with the issue-collector has a file attached (the file is available in jira) and the linking of the issues works, i only get my warning mails.

I tried it already without linking two issues, and by switching the order, but the recognition of files seems not to work properly.

does someone have an idea how to solve this?

 

issue.PNG

1 answer

1 accepted

2 votes
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.
January 2, 2023

HI @IT-Studentenwerk Goettingen 

The way your rule is currently built, it will only process until the first condition fails. 

Instead please try using the if/else condition to handle both cases after issue create.  Note the nesting of logic as this will confirm if you have the rule defined correctly.

  • trigger: issue created
  • action: Re-fetch issue (It is a good idea to add this after the Issue Created trigger because it can occur faster than the data being available to the rule.
  • if/else condition
    • condition: if the issue type is what expected
    • action link the issue
  • now with a another if/else condition...
    • condition: if issue attachments are not present
    • action: send the warning email
  • else
    • condition: if issue attachments are present
    • action: send the confirmation email

Kind regards,
Bill

IT-Studentenwerk Goettingen January 3, 2023

It works perfectly now. Thank you very much.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian community, university, on demand, transition to jira cloud

Transition to Jira Cloud

Switch to Jira Cloud with Atlassian University! Explore new navigation, issue views, and Cloud features like team-managed projects and automation. Tailored for Data Center users & admins, these courses ensure a smooth transition. Start your journey today!

Enroll now
AUG Leaders

Upcoming Jira Events