Is there a way to get the number of attachments added during a particular transition?

Matt Steadman May 7, 2024


We have a specific transition and associated transition screen where an attachment is required to be added.

My question is, is there a way to get a count of the number of attachment files that were added during that particular transition?

I have tried using Automation to accomplish this but the only number I am able to get pulled is the total number of files that are attached to the issue by utilizing {{attachment.size}}.


1 answer

0 votes
Floating electron
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.
May 7, 2024

Hi @Matt Steadman 

I don't think there is a way in Jira out of the box. However, with any jira expression based validator you could validate if the attachments were added during the transition. You can search for apps providing jira expression validator on the Atlassian Marketplace

I am from Forgappify, and we also developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira 

For your case, the Jira expression would be as follows:


Or you can test the difference:

issue.attachments.length - originalIssue.attachments.length == 2

where "issue" is the snapshot of fields including those from transition, and originalIssue is a snapshot from before the transition.

I hope it will help.




Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events