You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm trying to use Issue Collector to integrate my HTML. I use javascript to use the function button and custom Issue Collector. I use "fieldValues" to predefined information to submit to Jira. (User doesn't do anything. except click submit)
1. Can I remove "reason field" pop-up? I can't remove it. I think it is a mandatory field from the Issue Collector.
2. Block to edit when Issue Collector pop-up. I can't block to edit data from the console. It has a way to block via Javascript or any?
3. Can I auto-submit when the user clicks the button to open Issue Collector?
I follow this link. https://support.atlassian.com/jira-cloud-administration/docs/customize-the-jira-issue-collector/
Sample code follow example
<script type="text/javascript">window.ATL_JQ_PAGE_PROPS = {
"triggerFunction": function(showCollectorDialog) {
//Requries that jQuery is available!
jQuery("#UseCaseButton2").click(function(e) {
e.preventDefault();
showCollectorDialog();
});
},
fieldValues: {
summary : 'Issue-Title',
description : 'Issue-Description',
}};</script>
Hello @Ratree Wongsuwan,
Welcome to Atlassian Community!
Testing the issue collector here using a simple configuration with no javascript customization, didn’t show a Reason field, so I wonder if this is a required field on your project.
When creating a ticket directly from Jira, does it show that this field is required as well?
Block to edit when Issue Collector pop-up. I can't block to edit data from the console. It has a way to block via Javascript or any?
Searching for similar cases and also on our documentation, doesn’t mention about block the fields from being edited. What can be done is to set default values and set the fields to be hidden.
Can I auto-submit when the user clicks the button to open Issue Collector?
On our documentation, it doesn’t mention anything about auto-submit functionality, so I’m afraid to say that it won’t be possible.
With this said, since you need a more customized form, I would suggest you build your own form using REST API.
There is also this tutorial that might help:
Also, in case you need help with development questions, we have our developer community: https://community.developer.atlassian.com/
Kind regards,
Angélica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.