We are trying to use a Form field that is populated to a data connection to a Jira custom field.
The Forms field looks as follows:
Ideally, we thought we could copy this value to an existing custom field, but we get the following error:
Now, the question is is there a script or post function where we can strip the value of the forms field and copy it to an existing custom field? Looks like Automation doesn't have any options at this point.
cc: @Peter Preston
Thanks,
Hi @Fabian Lim
This is something we've been discussing. I can't share any timelines, but it's on the roadmap.
Can't speak to a script that would get you what you need, but will report back if I find something that could help.
Thanks for the update.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Came poking around looking for the same functionality. This would be a fantastic feature to have and would make Forms much more powerful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Preston is there any feature issue for this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Muhammet Ayal do you mean a feature request ticket? Not that I know of right now. I've discussed this functionality with the product team, but don't have any updates to share.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Peter Preston
Any news about being able to copy the value of a form field to a custom field? That would be great...Forms does and doesn't work because we don't get the information for indicators for example.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Karoline Rezende Ramos no news yet.
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.
Managed to get this working for anyone else interested.
I have a data connection to our HCM (Workday) via API which gives the user a dropdown selection of locations.
Using the above suggestions I managed to pull the value on issue creation and then set a custom field as text to drop the field from the form.
I can now match it to our centralized reporting in Power BI. Pretty neat!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Adam England
Hi Adam,
Thanks for sharing,
is that Cloud or Server JSM you are using ?
also, can you explain the syntax ?
what is "i1", "state" and the rest,
how can I find this specific from an existing form ?
Thanks !
Tal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cloud.
You would only need to change the number between answers and choices.
The number refers to the proforma field. Use inspect element to find the number you need. Mine happens to be the first field in the form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great ! I will try that
No need to specify the form name or id ?
What if I submit 2 forms is an issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm assuming you'd replace proforma.forms.i1 to i2
Here's the inspect element:-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adam!
Thanks for sharing this!
I've tried replicating it and it returned a number instead of the option selected.
Would you have any lead on why?
How did you get to "{{issue.properties."proforma.forms.i1".state.answers.1.choices.get(0)}}"?
Thanks!
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone!
After doing some searching and testing i found out that at the moment you cannot retrieve the value selected from choice fields eg.: select list (single choice), what you can get is the id from the selected option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mateus,
Glad you're on this journey too!
Try the following: {{issue.properties."proforma.forms.i1".state.answers.1.text}}
This returns the text of the value instead of the option.
Hope this helps!
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.