Hello,
When using Confiforms to create a Jira Issue, I'm trying to add files as attachments that get submitted with the form. The Jira issue (and email) are being created, but the file isn't attaching to the Jira Issue. I've looked at some other questions here and can't seem to get it working correctly.
I would like to use the Form Field with a fieldname of 'attachments' (a field type of File/Attachments) as the file selector to upload and attach the respective file to the Jira Issue.
Any help is highly appreciated! Here are screenshots of my setup.
Hi
Do you want to create a new attachment and attach it to the page?
Or just upload an attachment and pass it over to Jira?
Alex
@Alex Medved _ConfiForms_ Thanks for the reply - I'll mark this as answered - I was trying to upload a MS Word document, which isn't accepted, but the other file types (.pdf, .xls, etc.) that are supported did end up attaching both in the email notification and in the Jira issue. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Regarding just upload an attachment and pass it over to Jira?
I've build a form that just creates a Jira issue.
I can't get passed this error using the field definition marco file/attachment
com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"attachment":"Field does not support update 'attachment'"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How do you pass the attachment to Jira? what is your configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please remove the part with "attachment" and add a ConfiForms Field (field name parameter set to attach) macro inside the IFTTT macro
Like in here
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It has to be ConfiForms Field, as this way you reference a field...
Field Definition defines the field and it's type - and really is part of ConfiForms Form Definition only
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again Alex.
I can create a new post, but wanted to see if you have seen this one before.
Error -
"fixVersions": {"name": "["RegEntry{created=0, id='1_0_0 - Launch', ownedBy='null', recordId='0', createdBy='null', fields={vname=1_0_0 - Launch}}"]"}, } }'. Invalid format. Expected a ',' or '}' at 281 [character 29 line 10]
"fixVersions": {"name": "[[entry.fixversion.asArray]]"},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What field type in ConfiForms is a "fixversion"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Database Multi-select and Database Drop Down, b/c I really only want the user to select one fix version, but that didn't work either. I've tried the following as well
"fixVersions": {"name": "[entry.fixversion]"},
"fixVersions": {"name": "[[entry.fixversion.asArray]]"},
"fixVersions": {"name": "[entry.fixversion.asArray]"},
"fixVersions": {"id": "[entry.fixversion]"},
"fixVersions": {"id": "[[entry.fixversion.asArray]]"},
"fixVersions": {"id": "[entry.fixversion.asArray]"},
"fixVersions": {"vname": "[entry.fixversion]"},
"fixVersions": {"vname": "[[entry.fixversion.asArray]]"},
"fixVersions": {"vname": "[entry.fixversion.asArray]"},
Each Time I get this error
com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"fixVersions":"data was not an array"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why is it a multi-select if you want to put a single option?
Do you want to pass over the ID or the label?
"fixVersions": {"name": "[entry.fixversion.id]"},
or
"fixVersions": {"name": "[entry.fixversion.vname]"},
(and I hope the SQL query you use to get those versions does define the ID column, as expected)
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I thought it might require it be multi select based on the array error.
Same error - com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"fixVersions":"data was not an array"}}
Tried both "fixVersions": {"name": "[entry.fixversion.vname]"},
SQL i've tried
SELECT [vname]
FROM [JIRA_Team3].[dbo].[projectversion]
WHERE PROJECT = '10300' AND RELEASED is Null
AND ARCHIVED is Null
SELECT [id], [vname]
FROM [JIRA_Team3].[dbo].[projectversion]
WHERE PROJECT = '10300' AND RELEASED is Null
AND ARCHIVED is Null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fix versions in Jira is a multi select and yo need to set an array, as the error tells you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What have you tried?
It expects an array... so it would be something like this
"fixVersions": [{"id": "SOME_ID"}],
or
"fixVersions": [{"name": "SOME_NAME"}],
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With multi-select fields on ConfiForms side that would a bit more complex, but also possible as there are helper functions available
"fixVersions": [[entry.mymultiselectfield.asArrayOfKVPairs(name)]]
More on transformation functions in ConfiForms https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
Alex
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.