Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Jira 5 REST API to autotag custom fields #3

Open
robocoder opened this issue Aug 5, 2012 · 2 comments
Open

Support Jira 5 REST API to autotag custom fields #3

robocoder opened this issue Aug 5, 2012 · 2 comments

Comments

@robocoder
Copy link
Member

In Jira 4.4, the SOAP API doesn't give non-administrator access to the CustomField "name" property (a human-readable string). For example, what is "customfield_10180"?

object(stdClass)#3 (21) {
...
  ["customFieldValues"]=>
  array(5) {
    [0]=>
    object(stdClass)#4 (3) {
      ["customfieldId"]=>
      string(17) "customfield_10180"
      ["key"]=>
      NULL
      ["values"]=>
      array(1) {
        [0]=>
        string(5) "43947"
      }
    }

The REST API tells us this is the global "Rank".

object(stdClass)#1 (5) {
...
  ["fields"]=>
  object(stdClass)#2 (39) {
    ["customfield_10180"]=>
    object(stdClass)#7 (3) {
      ["name"]=>
      string(4) "Rank"
      ["type"]=>
      string(41) "com.pyxis.greenhopper.jira:gh-global-rank"
      ["value"]=>
      int(43947)
    }

Jira 4.4 has 2.0.alpha1 of the REST API, but it doesn't support posting comments.

@robocoder
Copy link
Member Author

Proposed config:

    custom_fields:
        custom_field_name: name_of_property
       ...

Example:

    custom_fields:
        # assumes 'value' is a simple property (e.g., string or int)
        Rank: ~
        # assumes 'value' is an array of objects
        Watchers: name

This was referenced Aug 5, 2012
@robocoder
Copy link
Member Author

Time flies...Jira 6.1.5 was released. REST has been deprecated, and Atlassian plans to remove SOAP/RPC in Jira 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant