Hi,
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}}.
Thanks,
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.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.