Hello All,
Scenario -
If on creation of a ticket an attachment is added. Then on triggering a transition using ACCEPT transition a screen pops up with date and attachment field again. Here there should be 2 things happening -
1. It should check whether the ticket has an attachment already, if there exist an attachment then it should accept and go ahead with transition, else
2. if there in no attachment it should not accept (an error should come -Please upload an attachment) the transition until an attachment is uploaded.
Is it possible to implement this, I am new to JIRA script runner.
Thanks!
Hi,
You can try using the 'Validator' option for the transition linking the 'ACCEPT' status where you have the screen associated with it. In this, you can use either the 'Field Required' validator and select the 'Attachment' field or select the validator 'Must have a Document Vault or Jira attachment' option.
Hope this helps.
Thanks,
Vamsi
Hey,
Thanks a lot. I figured it out.
Although I have another question. If you can help with that.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And if you want to check if there are attachments dependent on other fields selection?
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.