Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing formToken for attachment validator (Scriptrunner) during CreateIssue

Klaus Foerschl
Contributor
April 15, 2020

Hello,

as found also on Scriptrunner docu ( https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/validators/validate-attachments-links-in-transition.html ) we make use of getTemporaryWebAttachmentsByFormToken which requires a formToken.

The approach works well, as long as the user creates the issue initiated by the "Create" button and selecting the right project and issue-type.

But, if the user starts the dialog by direct access via URL, such like: https://my.jira.host/secure/CreateIssue.jspa?pid=99999&issuetype=99999

the formToken, which we should get by:
def formToken = ActionContext.getRequest()?.getParameter(IssueFieldConstants.FORM_TOKEN)

is NOT set.

Any idea, what the difference is and how we could overcome?

Thanks in advance

0 answers

Suggest an answer

Log in or Sign up to answer