hey,man
if you require attachment when issue.type is "Bug"
try this in workflow validator
when your type is bug
need .pdf file or .jpg file
if(issue.issueType.name == 'Bug'){ attachmentManager.getAttachments(issue).any{it.filename.endsWith('.pdf') || it.filename.endsWith('.jpg')} } else{ return true }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Klus,
when add pdf and press transition button show error (message: add PDF Please)
help please
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Klus,
I did that,
At the moment of creating the ticket (create issue screen) I add the PDF and the Errror is triggered and if I do not add the error it also fires.
Apparently you can not validate on the ticket creation screen
THK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in my scenario i need to attach 3 attachment with the following name while creating issue
1-BRD
2-CMF
3-RFI
there should be a mechanism that the system should read the 3 file names if uploaded and then create the transition else it should throw an error that the attachments are incomplete.
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.