Automation Failing - Attachment not coming over when required in new ticket

philipf
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.
June 11, 2024

Using Jira Cloud.

 

I am building an expense approval workflow, and part of that is an automation for pre-approval tickets to create a refular expense approval ticket when it hits a certain status. No issues there.

Where I am having issues is that an attachment is a required field in the pre-approval and regualr approval expense tickets. But when the automation fires when the pre-approval ticket hits the approved stage, it should generate the regaular approval ticket, copying over all fields. 

I am getting an errir that the new ticket couldn't be created because there was no attachment.

Is this an order of operations thing?

Screen shot attached of error and rules.

Note, i have seperate workflows for teh two different ticket types. I am thinking maybe make the attachment not required on the regaulr approval workflow until it gets to a later stage. But I would still like to copy over the original attachmentscreencapture-convergemarketing-atlassian-net-jira-software-c-projects-EX-settings-automate-2024-06-11-13_48_14.pngscreencapture-convergemarketing-atlassian-net-jira-software-c-projects-EX-settings-automate-2024-06-11-13_47_39.png

2 answers

2 accepted

0 votes
Answer accepted
philipf
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.
June 19, 2024

I was able to get this to work, and then both tickets disappeared simply creating two workflows for each ticket type. The tickets were created and when I went back to the board both were gone,

 

and got this error message, 

Action details:

Issue condition
The following issues passed:
EX-48
Create issue
Issues created successfully
EX-49
Transition issue
Destination status could not be resolved. If using a smart-value ensure this resolves to a numeric status ID or untranslated name for issues (with current status):
EX-48 (Expense Approved - 10338)
I don't understand why the destination issue could be, it is the same workflow, and this wasn't an error issue when I had both ticket types of the same workflow (my issue was an order of operation using the same flow). 
0 votes
Answer accepted
Duc Thang TRAN
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.
June 11, 2024

Hello @philipf 

I think the transition (creation a ticket type: Expense Reimbursement has a condition that "Attachment" is required.

I not sure but somehow the action "Create issue" with copy attachment from trigger issues is conflicting, and may not align with the expected order of operations, as you mentioned.

Can you check this part? If an attachment requirement exists, you may need to delete it in order to create a new issue.

philipf
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.
June 19, 2024

I think that is going to be it, I am going to remove the attachment is needed requirement on the field in general, and see if I can have the requirement come in during a transition. 

Suggest an answer

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

Atlassian Community Events