Forums

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

Can I change the layout of the options in checkbox/radiobuttons to horizontal in JSD Datacenter

venkatesh_rajput June 23, 2023

We have too keep scrolling to find the option, can we keep the options in the same line.

3 answers

0 votes
ninghongju October 6, 2023

hi @venkatesh_rajput

   This link may be the answer you need.

Solved: SOLVED: Checkboxes on multiple columns in Jira (atlassian.com)

<script language="javascript">
AJS.$(document).ready(function(){
Array.from(document.body.getElementsByClassName("checkbox")).forEach(function (cbox) {
if (cbox.getAttribute('name')=='customfield_10405') {
cbox.parentNode.style.cssFloat='left';
cbox.parentNode.style.width='20%';
}
});
});
</script>

added to the customfield description.

0 votes
venkatesh_rajput August 14, 2023

I was able to accomplish this using Scriptrunner, put the CSS in the field description to change the layout.

ninghongju September 27, 2023 edited

It's cool, How to do it?

 

update:
I got it. 

Solved: SOLVED: Checkboxes on multiple columns in Jira (atlassian.com)

<script language="javascript">
AJS.$(document).ready(function(){
Array.from(document.body.getElementsByClassName("checkbox")).forEach(function (cbox) {
if (cbox.getAttribute('name')=='customfield_10405') {
cbox.parentNode.style.cssFloat='left';
cbox.parentNode.style.width='20%';
}
});
});
</script>

added to the customfield description.

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 25, 2023

Hi @venkatesh_rajput ,

unfortunately, for my knowledge, you can't configure that. Because you are in a server instance, you could try to develop a specific javascript to put in place that behaviour.

https://confluence.atlassian.com/jirakb/how-to-customize-jira-with-javascript-1178874962.html

Hope this helps,

Fabio

venkatesh_rajput June 26, 2023

What imports can I use to customize the field layout, I am unable to set the field layout.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events