I have a collector with hidden custom fields. I'd like to set this fields with the same values of visible fields in the collector when the user submits the form, is this somehow possible?
I'd like to duplicate the email and name fields contents in particular.
You could try to use a post function to "Copy value from other field" during the creation of the issue.
FYI, you may need to look into some plugins to get this particular post function. One example of a plugin that provides this is the JSU plugin.
On deeper investigation it turns out that email and name (included by default in the collector if the user is not logged in) are actually not kept as fields but get added to the description field in the created issue. Is there a way to alter this behaviour so that the values get either assigned to respective fields or copied to new fields directly?
To me it looks like there is a kind of default post function for that, maybe it can be leveraged to obtain the desired behaviour? Where to look for that?
Hmmm... now it would seem that post functions would not be able to do this as the "Name" and "Emails" are not selectable options in the particular post function.
I'm not so sure regarding altering the behavior from "adding to the description field" to "map values to custom fields".
I already tried setting the values via js but this is done only when the collector is loaded and not when it is about to be submitted. If there would be a js function that could be specified to execute when submiting the problem would be solved I guess.
The problem is that the contents of the email and name cannot be set when the collector loads since they have to be provided by the user, then copied to the hidden ones (used in a workflow)
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot