Attachment validation at the time of ticket creation

neeta_dubey June 21, 2022

Hi All,

I need help if any validator is available by default in JIRA cloud premium version to ensure that attachment is added to the ticket before it get created.

Forms: Forms attached validator is available. Will this solve the purpose?

1 answer

0 votes
padraik
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.
June 21, 2022

Do you have Scriptrunner?

If so, set up a "simple scripted validator" on your workflow, for the "Create" transition:

-----------------------------

def components = issue.getAttachments()

def collectionSize = components.size()

if (collectionSize == 0 )

{

   return false

}

else

{

   return true

}

neeta_dubey June 22, 2022

Thanks for your response. I don't have a script runner.

also, what is the use of the validator I asked- Forms: Forms attached

Suggest an answer

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

Atlassian Community Events