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

jira trigger automation when a new pdf is attached

Mattia Battan January 26, 2024

hello everyone,
I have a problem for creating an automation in JSM.
We have a "conctract signature for jira" app to digitally sign hardware delivered to users.

By writing text in the description of a ticket, the app immediately attaches an html when creating the document and sending it to the user.
Second step, it attaches the pdf when it has been signed.
Obviously, the same ticket may contain multiple html files and multiple pdfs, as it may have made other signatures in the past.

My need is to have the ticket change status when a NEW pdf file is attached. I can't do this, because it changes my status when the first html is attached.
Any ideas?

Thanks!

3 answers

1 vote
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2024

Hi @Mattia Battan ,

If you use the Field value changed trigger for the field attachment and change type 'value added .

You can use: {{fieldChange.from}} to see the name and extension of the pdf.

With the smart value condition you can check if this smart value contains the text .pdf.

If it does you can change the status to New pdf file.

Mattia Battan January 26, 2024

hi @Rudy Holtkamp ,

I just tried as you told me, however it doesn't change the status, where am I wrong?

thank you!

2024-01-26 11_00_29-Window.jpg

Marc - Devoteam
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 26, 2024

What is the output of the audit log on running the rule?

This should give you a clue?

Like 山根 紗耶香 likes this
Mattia Battan January 26, 2024

Unfortunately, the log only says: "The following issues did not match the condition"

0 votes
Mattia Battan January 26, 2024

hi @Fazila Ashraf 

yes, this is how it works, however I would like to limit as much manual work as possible and understand all the states, unfortunately our agents are very distracted and in this case they should do exactly the steps:
- create the document
- change to a specific state
- send the signature link to the end user

Is there any way to trigger automation only when a new pdf is uploaded, regardless of status? and not have them read old uploaded pdfs.

Thank you

Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2024

How would you tell in your process which is old and which is new? 

e.g., the old is the attachment that uploaded when the status is Open ?

Mattia Battan January 26, 2024

Exactly I would like an automation that triggers when a new pdf is attached unconditionally from the ticket status and if there are already old pdfs attached.

0 votes
Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 26, 2024

Hi @Mattia Battan 

After sending the doc to user, can you make a ticket transition to another specific status? And then the automation can only focus on that specific status condition for the new attachment?

Suggest an answer

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

Atlassian Community Events