Attachment requirement validator

Dorothy Callahan
Contributor
August 15, 2023

Hi all,

I want to requirement attachment when issue is created.  I have added a validator to "Create" transition that requires attachment however, even when I attachment is uploaded, I continue to receive message stating attachment is required.  Transition_ Create_Attachment Validator 20230815.pngAttachment requirement warning 20230815.png

Attachment to story creation to satisfy requirement 20230815.png

 

3 answers

1 accepted

1 vote
Answer accepted
Mayura
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2023

Hey @Dorothy Callahan 

Good day!

Please note that Forms and attachments are different entities in Jira. In order to make attachments mandatory while creating issues, you need to add the Field Required Validator and choose Attachment. 

Screenshot 2023-08-15 at 10.45.28 PM.pngScreenshot 2023-08-15 at 10.45.40 PM.png

Once done, please make sure to remove the Forms validator.

Screenshot 2023-08-15 at 10.45.53 PM.png

Please make sure to accept this answer if it helps :) And of course do let me know if you have any more questions.

Thanks :)

Dorothy Callahan
Contributor
August 15, 2023

Perfect!  It worked!  Thanks so much!

Like Mayura likes this
0 votes
Antonio Calì
Contributor
December 17, 2024

the same issue, validation for Attachment doesn't work 

0 votes
amit.bakst
Contributor
February 12, 2024

Hi @Mayura ,

I tried to implement the solution you provided in Jira, but it seems that Jira was unable to validate the attachment.

I have attached a file to the ticket and set a validator for this transition.

image.png

image.png

However, I received an error comment. 

image.png

 

Can you please help me resolve this issue?

Thank you in advance.

Amit

Sandy Huanco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2024

 

 

Hi Amit, I have the same issue... did you manage to solve it?

Maciej Dudziak _Forgappify_
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.
December 17, 2024

Hi @Sandy Huanco

The Field Required Validator, available out-of-the-box in Jira, ensures that fields are not empty during a transition, including Create issue transition. However, it only works when a transition screen is present. 

For example, if you added an attachment on the issue view and then tried to change the status, the validator ignores previously attached files and expects a new file to be added during the transition. Without a transition screen that includes the Attachment field, the validator will block the transition.

You have two options: either add a screen with the Attachment field to your transition, or—if that’s not ideal—consider using a third-party validator.

At Forgappify, we developed the Fields Required Validator (WBB), which is part of the Workflow Building Blocks for Jira app. It checks the state of the issue during the transition and will pass if an attachment has already been added.

I hope it will help.

Cheers



Suggest an answer

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

Atlassian Community Events