Hi,
I'm developing a new custom field plugin (Limited Group Picker) and would like to let the user specify one parameter for this field. It should be configurable on http://host/jira/secure/admin/ConfigureCustomField!default.jspa?customFieldId=XXXXXX . What is the best way to do this?
I have already found out how to create my own field by subclussing MultiGroupCFType, how to create a new group picker (based on GroupPickerBrowser and grouppicker.jsp), but I cannot find a way to add a new parameter that would be displayed on fields "Configure" screen.
Thanks,
You need to override getConfigurationItemTypes on your customfield type. Have a look at the code here, it's pretty straightforward - https://bitbucket.org/jamieechlin/issue-alternative-assignee/src/c83e17f19000/src/main/java/com/iamhuy/jira/plugin/customfields.
Also the (freely-available) example code for Matt Doar's book "Practical JIRA Plugins" has an example of this - but buy the book too.
Thanks for your tips, they were very helpful. I followed your examples, but encountered another problem. I develop the plugin in Eclipse, whose workspace (and project) has been configured to use M2_REPO variable (pointing to ~/.m2/repository). The repository has been created as a result of running atlas-create-jira-plugin script. The problem is that when I try to subclass com.atlassian.jira.web.action.admin.customfields.AbstractEditConfigurationItemAction this class cannot be found in the classpath. What should I do in this situation, should I manually add an artifact to my local repository? If so, which one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think this is a separate question, you will have better results starting a new thread, because people will often not look at answered questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
Did you get the code to work?
I'm also trying to develop a "Limited Group Picker". I have extended GroupPickerBrowser to limit the number of groups displayed but failed to add configuration parameters.
Any suggestions?
Regards,
Michael Danielsson
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.