Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,551
Community Members
 
Community Events
165
Community Groups

Attachment validation at the time of ticket creation

Edited

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

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

}

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you