When using the issue collector with the feedback form, we ARE NOT able to add hidden fields.
When using the issue collector with a custom template, we ARE able to add hidden fields.
window.ATL_JQ_PAGE_PROPS = $.extend(window.ATL_JQ_PAGE_PROPS, {
"triggerFunction": function(showCollectorDialog) {
$("#feedback-form").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
},
fieldValues: {
fullname: "Name Here",
email: "Email Here",
customfield_10905: 'TEST',
customfield_10904: 'test'
}
});
The customfield_ fields are passed during the feedback form post on both feedback and custom, but are only saved to the actual issue when using the custom form.
Is this a limitation of the template for feedback form that it will not accept hidden fields?
Is there anyway to add the "rating" that exists in the feedback form into a custom template?
Please, could you show how is it possible to add hidden fields to issue tracker? Thanks in advance. With best regards.
I contacted JIRA support
You can add hidden fields with the custom template
You cannot add hidden fields to a pre-fabricated template
by specifying fieldValues with customField_# matching the custom field you are trying to achieve
To determine the custom field id, you can use the link here
https://community.atlassian.com/t5/Jira-questions/How-do-I-determine-the-custom-field-id-for-Jira-integration/qaq-p/39809
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you have a link about how to add a hidden field to the custom template?
I've created a custom template, however there is no chance to see how to add hidden fields. Thanks in advance, Keith!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Keith, how can I create hidden fields? I can create custom fields, but they are not hiddden. Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A hidden field is not really a "field" in the classic sense
A hidden field is simply adding the fieldValues that might not be visible
https://confluence.atlassian.com/adminjiraserver071/advanced-use-of-the-jira-issue-collector-802592648.html#AdvanceduseoftheJIRAissuecollector-Hiddenfields
One problem I did run into was I wanted to add hidden fields to the environment, unless the user explicitly checks the box to share environment details, it is not possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You don't add them to your template, you only add them to your fieldValues
When you are creating a custom issue collector DO NOT add the custom fields to your template
But instead set the values in fieldValues
Hidden fields is really the separation of what the template knows about, vs what the java script knows about
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Keith, it works like a charm! You are so cool! Thank you very much!:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.