Mantis Bugtracker          
testlink.org

View Revisions: Issue #7050 All Revisions ] Back to Issue ]
Summary 0007050: JIRA REST - Possibility to specify custom fields on XML configuration
Revision 2015-04-11 14:24 by fman
Description Due to differences between SOAP API (that will be deprecated on JIRA) and REST API, configuration is a little bit different.

Not all custom field types are currently supported
(see
https://developer.atlassian.com/jiradev/api-reference/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue#JIRARESTAPIExample-CreateIssue-Examplesofhowtosetcustomfielddataforotherfieldtypes [^])

 
Full example (please pay attention to BOLD lines)
<issuetracker>
<username>testlink.forum</username>
<password>forum</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<projectkey>ZOFF</projectkey>
<issuetype>1</issuetype>
<userinteraction>1</userinteraction>


<attributes>
  <customFieldValues>
     <customField>
        <customfield>customfield_10800</customfield>
        <type>numberfield</type>
        <values><value>111</value></values>
     </customField>
     
     <customField>
        <customfield>customfield_10900</customfield>
        <type>multiselect</type>
        <values><value>Yamaha Factory Racing</value><value>Ducati</value></values>
      
</customField>

      <customField>
         <customfield>customfield_11301</customfield>
         <type>selectlist</type>
         <values><value>Sabre</value></values>
      </customField>

      <customField>
         <customfield>customfield_11300</customfield>
         <type>freetextfield</type>
         <values><value>Deep Purple Stormbringer</value></values>
      </customField>
  
  </customFieldValues>
</attributes>


</issuetracker>



@20150411 - following types have been tested
NumberField
MultiSelect
SelectList
FreeTextField

Implemented but not tested yet
MultiGroupPicker
MultiUserPicker
DatePickerField
DateTimeField
RadioButton
Labels
               

Revision 2015-04-11 14:23 by fman
Description Due to differences between SOAP API (that will be deprecated on JIRA) and REST API, configuration is a little bit different.

Not all custom field types are currently supported
(see
https://developer.atlassian.com/jiradev/api-reference/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue#JIRARESTAPIExample-CreateIssue-Examplesofhowtosetcustomfielddataforotherfieldtypes [^])

 
Full example (please pay attention to BOLD lines)
<issuetracker>
<username>testlink.forum</username>
<password>forum</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<projectkey>ZOFF</projectkey>
<issuetype>1</issuetype>
<userinteraction>1</userinteraction>


<attributes>
  <customFieldValues>
     <customField>
        <customfield>customfield_10800</customfield>
        <type>numberfield</type>
        <values><value>111</value></values>
     </customField>
     
     <customField>
        <customfield>customfield_10900</customfield>
        <type>multiselect</type>
        <values><value>Yamaha Factory Racing</value><value>Ducati</value></values>
      
</customField>

      <customField>
         <customfield>customfield_11301</customfield>
         <type>selectlist</type>
         <values><value>Sabre</value></values>
      </customField>

      <customField>
         <customfield>customfield_11300</customfield>
         <type>freetextfield</type>
         <values><value>Deep Purple Stormbringer</value></values>
      </customField>
  
  </customFieldValues>
</attributes>


</issuetracker>



@20150411 - following types have been tested
NumberField
MultiSelect
SelectList
FreeTextField

Implemented but not tested yet
MultiGroupPicker
MultiUserPicker
DatePickerField
DateTimeField
RadioButtons
Labels
               

Revision 2015-04-11 14:19 by fman
Description Due to differences between SOAP API (that will be deprecated on JIRA) and REST API, configuration is a little bit different.

Not all custom field types are currently supported
(see
https://developer.atlassian.com/jiradev/api-reference/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue#JIRARESTAPIExample-CreateIssue-Examplesofhowtosetcustomfielddataforotherfieldtypes [^])

 
Full example (pay attention to BOLD lines)
<issuetracker>
<username>testlink.forum</username>
<password>forum</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<projectkey>ZOFF</projectkey>
<issuetype>1</issuetype>
<userinteraction>1</userinteraction>


<attributes>
  <customFieldValues>
     <customField>
        <customfield>customfield_10800</customfield>
        <type>numericfield</type>
        <values><value>111</value></values>
     </customField>
     
     <customField>
        <customfield>customfield_10900</customfield>
        <type>multiselect</type>
        <values><value>Yamaha Factory Racing</value><value>Ducati</value></values>
      
</customField>

  
  </customFieldValues>
</attributes>


</issuetracker>



@20150411 - following types have been tested


Revision 2015-04-09 18:19 by fman
Description Due to differences between SOAP API (that will be deprecated on JIRA) and REST API, configuration is a little bit different.

Full example (pay attention to BOLD lines)
<issuetracker>
<username>testlink.forum</username>
<password>forum</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<projectkey>ZOFF</projectkey>
<issuetype>1</issuetype>
<userinteraction>1</userinteraction>


<attributes>
  <customFieldValues>
      <customfield>customfield_10800</customfield>
      <values><int>111</int></values>
      <customfield>customfield_10900</customfield>
      <values><string>Yamaha Factory Racing</string><string>Ducati</string></values>
  
</customFieldValues>
</attributes>


</issuetracker>


- Value type has to be provided
custom field WITH SINGLE VALUE of type INTEGER:
<customfield>customfield_10800</customfield>
      <values><int>111</int></values>

custom field that allow MULTIPLE VALUES of type STRING
      <customfield>customfield_10900</customfield>
      <values><string>Yamaha Factory Racing</string><string>Ducati</string></values>

 
Revision 2015-04-09 18:17 by fman
Description Due to differences between SOAP API (that will be deprecated on JIRA) and REST API, configuration is a little bit different.

Full example (pay attention to BOLD lines)
<issuetracker>
<username>testlink.forum</username>
<password>forum</password>
<uribase>https://testlink.atlassian.net/</uribase> [^]
<uriapi>https://testlink.atlassian.net/rest/api/latest/</uriapi> [^]
<projectkey>ZOFF</projectkey>
<issuetype>1</issuetype>
<userinteraction>1</userinteraction>


<attributes>
  <customFieldValues>
      <customfield>customfield_10800</customfield>
      <values><int>111</int></values>
      <customfield>customfield_10900</customfield>
      <values><string>Yamaha Factory Racing</string><string>Ducati</string></values>
  
</customFieldValues>
</attributes>


</issuetracker>


- Value type has to be provided
Integer custom field:

 



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker