Hi,
I've been setting some fields (as it is in docs). The problem is that the defined values are not showing up in the created jira issue (created by the collector). There is only visible collector id and what was provided by the user in the collector form. I am using default 'got feedback' template for the collector.
Hi, @Zofia Subocz
Welcome to the Atlassian Community!
Could you please clarify these 3 questions:
1. Is the fix Version field on the Create screen?
2. Does the default reporter have permission to set Fix Version?
3. Does the version ID exist in the same project?
Hi @Gor Greyan
Thank you for your quick response. For all of your questions the answer is yes.
Also I have tested custom issue collector template, and with the custom one, the ''fieldValues' set is working fine (they appear on the created issue). This problem only refers to the default issue collector templates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @Zofia Subocz
Since the fieldValues
work correctly with your custom issue collector template, but not with the default “Got feedback?” template. This behavior is expected.
The default collectors in Jira have some built-in logic that overrides or ignores manually provided fieldValues
. That’s why your pre-set values only appear when you use a custom collector.
<!-- Floating 'Got feedback?' button -->
<style>
.feedback-btn {
position: fixed;
right: 20px;
bottom: 20px;
background-color: #0052CC;
color: #fff;
padding: 12px 18px;
border: none;
border-radius: 30px;
font-size: 14px;
font-family: Arial, sans-serif;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
cursor: pointer;
z-index: 9999;
}
.feedback-btn:hover {
background-color: #0747A6;
}
</style>
<button id="open-feedback" class="feedback-btn">Got feedback?</button>
<script type="text/javascript">
window.ATL_JQ_PAGE_PROPS = {
fieldValues: {
summary: 'Feedback for Fake App 2.0.',
description: 'Please add your feedback for Fake App 2.0 here:',
fixVersions: ['48954'] // replace with valid version IDs
},
triggerFunction: function (showCollectorDialog) {
document.getElementById('open-feedback').addEventListener('click', function(e) {
e.preventDefault();
showCollectorDialog();
});
}
};
</script>
<!-- Replace YOUR-DOMAIN and YOUR-COLLECTOR-ID with your actual values -->
<script type="text/javascript" src="https://YOUR-DOMAIN.atlassian.net/s/collector.js?collectorId=YOUR-COLLECTOR-ID"></script>
Please try this script, which recreates the “Got Feedback?” collector button (same style and behavior) but uses a custom template.
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.