Hi everyone!
I'm currently working on a feature that require the creation of a new customfield of type checklist for a Jira Software plugin.
The idea is to programmatically create a customfield of type multiselect that propose a list of checkboxes to check. I'm having trouble to find the right methods to do so.
Is any of you already did something like that ? Or have any advice ?
UPDATE :
I managed to create the customfield I needed but if the checkboxes are not checked, the options doesn't appears in the issue (view.vm).
I'm currently searching in target/jira/webapp/secure/admin.views/customfields if I can change the code that hide the options if not checked.
Is someone did it already ? Any advice on how to change that so I can see my unchecked boxes ?
Thanks :-)
@Tomas Gustavsson and @[deleted] first of all thank you for your reply.
What we want to do is create a new custom field of type Check list to show the Definition of done criteria.
The trouble with the native custom field of type checkbox is that you can't see the options that are not checked, and if so, you see them in a row, on one single line. So we had to develop our own custom field.
Here is an example of what we want to achieve :
For now I looked in the Atlassian API documentation and find the MultiSelectCFType class but I'm not sure how to use it to do what I want.
I hope it'll help for your advice.
Thanks
If you use the example above you will get exactly what you are asking for.
this is what it looks like in Jira
But you need to have JSU - Suite Utilities for Jira, to be able to use this.
Create a field as below, and leave it empty.
Then add the field in a post function like below
Update Any Issue Field (JSU)
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 sure what you are looking for, but i have this idea, may be it helps.
i'm using Jira suite util, in a post function i have following
Update Any Issue Field (JSU)
this field value, can be changed for each transition and i think that is maybe what you are after.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @emilieL29 I'm trying to understand your requirement
---> Depends upon the Value selected in Checklist Field you need to Show/Hide the another custom field is that correct ?
Thanks,
Phani
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.