Since ConfiForms version 3.13 (DC/Server, and also available in ConfiForms cloud) we have introduced a new field to help you with configuring fields that take their values from the fields in Jira.
Prerequisites
You should already have a web-service connection to your Jira service (done once by your instance administrator)
ConfiForms app configuration
- Server/DC - /admin/vertuna/confiforms/config.action?tab=ws
- Cloud - /wiki/plugins/servlet/ac/com.vertuna.confluence.plugins.confiforms/confi-forms-admin?user.isExternalCollaborator=false (select Webservices connections tab)
The connection must be to your Jira (starting from 8.x or cloud) and must be to your Jira root. ConfiForms uses https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get and constructs the API call dynamically concatenating the root URL you have configured with the URL mentioned in this service
Configuration
And select the connection to use and the project/issue type where the field is configured
For example, we want to configure a field to take values from a project FORMS (project key in Jira), Issue type where it is used and configured is a "Bug" and the field name is "customfield_11000"
That's it. Nothing more to configure. ConfiForms will determine automatically the field type - be it the single select or multi-select (multi checkboxes in Jira are rendered as multi-select in ConfiForms), or a cascading list. And will render accordingly.
When the field is
- a single choice select you can easily get it's values via
Code Block |
---|
[entry.jiraSelectField] |
- a multi select is the same as any other multi-select in ConfiForms - see Accessing field values and properties. Handy way to get the list of ids or labels is as follows
Code Block |
---|
[entry.jiraSelectField.transform(id).asList]
[entry.jiraSelectField.transform(label).asList] |
- a cascading list holds pair of values which you can access as follows (see more available fields in Accessing field values and properties for Jira Select Field)
Code Block |
---|
[entry.jiraSelectField.parent.id]
[entry.jiraSelectField.parent.label]
[entry.jiraSelectField.child.id]
[entry.jiraSelectField.child.label] |