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.
Hello,
Is there a way to hide configure fields only for certain issue types?
Regards,
Vidhya
Can you please share screenshot and elaborate more?
What you mean by "configuration field"?
@Nir Haimov , I'm talking about "Configure Fields" on the Create Issue page. I want that to appear/disappear based on issue types selected
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ohhh
I get it now.
No, you can't set such a thing, there is no such built-in option, but it is possible to write a JS to hide it when you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not well versed with coding. Is it possible to give me a JS which check the issue types and then disables the configure fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this will work for you
if ($("#issuetype-field").val() == "Task" || $("#issuetype-field").val() == "Bug")
$("#qf-field-picker-trigger").remove()
But if you are no coding, so you probably don't know where to put it either...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Nir Haimov . Will this code work. I've figured out where to put this piece of code though :)
<script type="text/javascript">
(function($) {
AJS.toInit(function(){
// init on load
if ($("#issuetype-field").val() == "Test" || $("#issuetype-field").val() == "Test Plan") || $("#issuetype-field").val() == "Test Set") || $("#issuetype-field").val() == "Test Execution") || $("#issuetype-field").val() == "Pre-Condition")
AJS.$("#qf-field-picker-trigger").hide();
})
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
// init on refresh
if ($("#issuetype-field").val() == "Test" || $("#issuetype-field").val() == "Test Plan") || $("#issuetype-field").val() == "Test Set") || $("#issuetype-field").val() == "Test Execution") || $("#issuetype-field").val() == "Pre-Condition")
AJS.$("#qf-field-picker-trigger").hide();
});
})(AJS.$);
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest you to use this code instead :)
(function ($) {
AJS.toInit(function () {
// init on load
var issueTypes = ["Test", "Test Plan", "Test Set", "Test Execution", "Pre-Condition"];
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
})
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
// init on refresh
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
});
})(AJS.$);
Try it out, if it works for you, please mark my solution as the answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nir Haimov , the code is working only for 'Test' and is not working for any of the above mentioned issue types
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tested it and it works fine for all issue types.
Where did you put your script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nir Haimov ,
I had put the script in field configuration of 'Test' issue type. - under 'Description' field
Regards,
Vidhya
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.
Does all your "test" issue types, are under the same field configuration?
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.
Exactly :)
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.
Hello @Nir Haimov ,
Create issue is not working now when I update in all the required FCs. Any suggestions?
The screen stays as below.
Regards,
Vidhya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check for errors in the dev tools and let me know
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Below are the issue types configured in my project.. I want "Configure Fields" to appear only for bug
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand, but i need you to open the browser dev tool (click F12) and see if there are errors that cause your create screen to not show (as you sent before)
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.
VM3731:10 Uncaught ReferenceError: issueTypes is not defined
at HTMLDocument.eval (eval at globalEval (batch.js?locale=en-UK:33), <anonymous>:10:9)
at HTMLDocument.dispatch (batch.js?locale=en-UK:44)
at HTMLDocument.v.handle (batch.js?locale=en-UK:44)
at Object.trigger (batch.js?locale=en-UK:44)
at Object.c.event.trigger (batch.js?locale=en-UK:64)
at HTMLDocument.<anonymous> (batch.js?locale=en-UK:44)
at Function.each (batch.js?locale=en-UK:33)
at c.fn.init.each (batch.js?locale=en-UK:29)
at c.fn.init.trigger (batch.js?locale=en-UK:44)
at Object.i.trigger (batch.js?locale=en-UK:572)
eval @ VM3731:10
dispatch @ batch.js?locale=en-UK:44
v.handle @ batch.js?locale=en-UK:44
trigger @ batch.js?locale=en-UK:44
c.event.trigger @ batch.js?locale=en-UK:64
(anonymous) @ batch.js?locale=en-UK:44
each @ batch.js?locale=en-UK:33
each @ batch.js?locale=en-UK:29
trigger @ batch.js?locale=en-UK:44
i.trigger @ batch.js?locale=en-UK:572
(anonymous) @ batch.js?locale=en-UK:790
dispatch @ batch.js?locale=en-UK:44
v.handle @ batch.js?locale=en-UK:44
trigger @ batch.js?locale=en-UK:44
c.event.trigger @ batch.js?locale=en-UK:64
(anonymous) @ batch.js?locale=en-UK:44
each @ batch.js?locale=en-UK:33
each @ batch.js?locale=en-UK:29
trigger @ batch.js?locale=en-UK:44
_setContent @ batch.js?locale=en-UK:2946
_setContent @ batch.js?locale=en-UK:3122
(anonymous) @ batch.js?locale=en-UK:603
(anonymous) @ batch.js?locale=en-UK:2946
(anonymous) @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6398
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6398
c @ batch.js?locale=en-UK:44
add @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6398
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6359
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
complete @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6359
i @ batch.js?locale=en-UK:594
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
u @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?locale=en-UK:44
load (async)
send @ batch.js?locale=en-UK:44
ajax @ batch.js?locale=en-UK:44
m.makeRequest @ batch.js?locale=en-UK:594
refresh @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6359
getUseConfigurableForm @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6359
render @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6398
content @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6398
builder @ batch.js?locale=en-UK:2946
_setContent @ batch.js?locale=en-UK:2946
_setContent @ batch.js?locale=en-UK:3122
(anonymous) @ batch.js?locale=en-UK:603
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
l @ batch.js?locale=en-UK:106
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?locale=en-UK:106
(anonymous) @ batch.js?locale=en-UK:82
Y @ batch.js?locale=en-UK:82
Z @ batch.js?locale=en-UK:82
F.resolve @ batch.js?locale=en-UK:82
Y @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:82
Y @ batch.js?locale=en-UK:82
Z @ batch.js?locale=en-UK:82
F.resolve @ batch.js?locale=en-UK:82
Y @ batch.js?locale=en-UK:82
Z @ batch.js?locale=en-UK:82
F.resolve @ batch.js?locale=en-UK:82
al @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:88
Y @ batch.js?locale=en-UK:82
Z @ batch.js?locale=en-UK:82
F.resolve @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:88
n @ batch.js?locale=en-UK:88
aa @ batch.js?locale=en-UK:82
load (async)
loadScript @ batch.js?locale=en-UK:82
e @ batch.js?locale=en-UK:88
d @ batch.js?locale=en-UK:88
load @ batch.js?locale=en-UK:88
(anonymous) @ batch.js?locale=en-UK:82
H @ batch.js?locale=en-UK:82
fetchDep @ batch.js?locale=en-UK:82
Z @ batch.js?locale=en-UK:82
getDeps @ batch.js?locale=en-UK:82
(anonymous) @ batch.js?locale=en-UK:82
H @ batch.js?locale=en-UK:82
w @ batch.js?locale=en-UK:82
K @ batch.js?locale=en-UK:82
_processResourceResponse @ batch.js?locale=en-UK:106
(anonymous) @ batch.js?locale=en-UK:106
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
u @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?locale=en-UK:44
load (async)
send @ batch.js?locale=en-UK:44
ajax @ batch.js?locale=en-UK:44
_getScriptsForResources @ batch.js?locale=en-UK:106
(anonymous) @ batch.js?locale=en-UK:106
_enqueueRequest @ batch.js?locale=en-UK:106
_resolveAsync @ batch.js?locale=en-UK:106
n @ batch.js?locale=en-UK:106
require @ batch.js?locale=en-UK:106
WRM.require @ batch.js?locale=en-UK:109
downloadResources @ batch.js?locale=en-UK:2946
show @ batch.js?locale=en-UK:2946
c @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6428
d @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6425
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
l @ batch.js?locale=en-UK:106
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
a.<computed> @ batch.js?locale=en-UK:44
c @ batch.js?locale=en-UK:44
add @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?locale=en-UK:106
c @ batch.js?locale=en-UK:44
fireWith @ batch.js?locale=en-UK:44
u @ batch.js?locale=en-UK:44
(anonymous) @ batch.js?locale=en-UK:44
load (async)
send @ batch.js?locale=en-UK:44
ajax @ batch.js?locale=en-UK:44
_getScriptsForResources @ batch.js?locale=en-UK:106
(anonymous) @ batch.js?locale=en-UK:106
_enqueueRequest @ batch.js?locale=en-UK:106
_resolveAsync @ batch.js?locale=en-UK:106
n @ batch.js?locale=en-UK:106
require @ batch.js?locale=en-UK:106
WRM.require @ batch.js?locale=en-UK:109
(anonymous) @ batch.js?agile_global_admin_condition=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-UK&richediton=true&user-logged-in=true:6425
c._clickHandler @ batch.js?locale=en-UK:808
dispatch @ batch.js?locale=en-UK:44
v.handle @ batch.js?locale=en-UK:44
Show 92 more frames
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vidhya Mohan try to put this line:
var issueTypes = ["Test", "Test Plan", "Test Set", "Test Execution", "Pre-Condition"];
Also inside "Jira.bind" before the "if" statement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nir Haimov
Like this?
<script type="text/javascript">
(function ($) {
AJS.toInit(function () {
// init on load
var issueTypes = ["Test", "Test Plan", "Test Set", "Test Execution", "Pre-Condition"];
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context){
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
});
})
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
// init on refresh
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
});
})(AJS.$);
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Like this:
(function ($) {
AJS.toInit(function () {
// init on load
var issueTypes = ["Test", "Test Plan", "Test Set", "Test Execution", "Pre-Condition"];
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
})
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) {
// init on refresh
var issueTypes = ["Test", "Test Plan", "Test Set", "Test Execution", "Pre-Condition"];
if (issueTypes.includes($("#issuetype-field").val()))
AJS.$("#qf-field-picker-trigger").hide();
});
})(AJS.$);
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.
This javascript is suddenly not working. It is getting displayed on the screen (screenshot below)
Any idea why this is happening suddenly? Version of JIRA - v 8.13.2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check Jira admin settings if maybe HTML support in custom field description turned off.
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.
But it is hiding for all users, is there way we can hide only for users not for admins ?
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.