Adding the ability to PUT/POST the Jira custom field option values would ensure data integrity and consistency across the automated and more manual, Jira-driven parts of the workflow.Īs for needs, either a simple PUT with the full set of option values included in the request, or the ability to add and delete individual option items would work. It provides a domain object model of JIRA entities on the. Example: I created the 'Test API' custom field and gave it three values 'API 1', 'API 2' and 'API 3'. JRJC currently provides a thin layer of abstraction on top of REST API and related HTTP (S) communication. JIRA API GET all values for a custom field JIRA API GET all values for a custom field Gustavo Nunes Batista I'm trying to get all possible values for a customfield on JIRA through the GET api. As part of its processing the system can create new option values within itself. J ira R EST J ava C lient is a Java library (usable from any JVM language) which allows to easily talk to any Jira Server 4.2+ instance using new (and still evolving) REST API. Since the system is used to add options to itself - stored in a database table - to ensure the automated parts and the Jira workflow parts work well together the sets of possible options need to stay in-sync. The domain of options, however, is managed by the system and any selected option must be valid within that domain. Ticket resolution includes assigning a value to a field, accomplished via a Jira Custom Field. When manual intervention is required the system opens an issue in Jira. For example, the Jira Software API has methods for sprints and so on. In addition, Jira Software and Jira Service Management provide APIs for application-specific functionality. These APIs are common to all Jira applications. Thanks fro the answer but I've been struggling to use ComponentAccessor. The Jira platform provides Java APIs that you can use to interact with Jira programmatically. Below, is a XML representation of the custom field that I'm trying to fulfill where 'DATAOBJECT' is an item in a multiselect option: Environnements .I'm trying to set customs fields meanwhile I'm creating a Jira instance by using Java Jira Rest Client. ![]() Use Case: a system manages some mostly automatic process. CustomField måustomField customFieldManager.getCustomFieldObject ( 'customfield11111' ) String måustomFieldValue issue.getCustomFieldValue (måustomField) log.debug ( 'Value: ' +måustomFieldValue) Regards. How to set a custom field (multiselect) in Jira using Java Jira Rest Client. ![]() With support of PUT (or POST) operation on that URI additional workflows would be supported. Using JIRA Cloud? See the corresponding suggestion.Ĭurrently the REST API supports the GET method on api/2/customFieldOption/ I don't have any real experience with this library, so if someone more knowledgable knows whether or not there are other similar usages in this project, please do reply to the net-dev discussion on the openjdk mailing list.NOTE: This suggestion is for JIRA Server. ![]() There's even a discussion in the openjdk net-dev mailing list to see if there are other similar usages in Zookeeper which might be impacted by this change in the JDK 14. on how to perform various operations (e.g. But given that 3.4.x isn't that old, I thought I'll raise this here and see if it can be fixed and whether a new 3.4.x release is warranted.įurthermore, there was a discussion here which explains the whole details. In atlassian-jira/WEB-INF/classes/templates/email/text/includes/. The issue doesn't show up in 3.5.x versions of Zookeeper. This appears to be due to the use of `InetSocketAddress.toString()` to parse the host name of an unresolved address in StaticHostProvider. When running on Java 14, the 3.4.x version of `` which creates a client to connect to a Zookeeper server, fails to connect against the server.
0 Comments
Leave a Reply. |