Forums

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

Issue Collector - Feedback Form Hidden Fields

Keith Dickerson March 6, 2018

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?

1 answer

0 votes
zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

Please, could you show how is it possible to add hidden fields to issue tracker? Thanks in advance. With best regards.

Keith Dickerson April 6, 2018

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

zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

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!

zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

Keith, how can I create hidden  fields? I can create custom fields, but they are not hiddden. Thanks in advance.

Keith Dickerson April 6, 2018

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 


Keith Dickerson April 6, 2018

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

zaharovvv_suek_ru
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2018

Thanks, Keith, it works like a charm! You are so cool! Thank you very much!:)

Suggest an answer

Log in or Sign up to answer