It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

creating customized field with field type checkbox by Javascript programmatically

I'm using 7.x server and created a customized field as field type checkbox. Want to create the options via Rest API and java script programmatically. I don't want to use plugin and maven. Only hack as java script. But do not really know in which field to place my html and js. When configure the customized field, which Field is the starting point for my code, Description or Option or else where ?

Thanks a lot in advance


1 answer

1 accepted

0 votes
Answer accepted

Hy @Niko Zimmermann 

i've placed custom js and html in the description of a custom field before and it worked.

That said, i dont recommend doing that. No one will be looking in the field description to find out where the options for the customfield come from - which makes working with that field more complicated than it should be for a fellow admin. I strongly recommend setting the options via the custom field admin page.


Aha, so the description of a custom field is one known HACK. I am just evaluating the possible ways using javascript to generate the options via REST/json. For different Definition-of-Done's in different transition screens maintaining the checkbox options by the System admin will overload her. Needs a bit relief from the project admin or the team. The options do not depend on the project but on the status as well (on the transition screen). I could do it via java/maven/install and the customfield-type module. But I read there is a second option like JIRA Toolkit Plugin which provides field types called "Message Custom Field (for view)" and "Message Custom Field (for edit)". But like I said I am just evaluating and listening now. Thank you for you recommendation


Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you