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.
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.
Once done, please make sure to remove the Forms validator.
Please make sure to accept this answer if it helps :) And of course do let me know if you have any more questions.
Thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the same issue, validation for Attachment doesn't work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
However, I received an error comment.
Can you please help me resolve this issue?
Thank you in advance.
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit, I have the same issue... did you manage to solve it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.