Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-9912

Return affected services Name and Tier on GET issue API

XMLWordPrintable

    • 3
    • 10
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Currently executing the GET issue API if there's a value for "Affected Service" it'll return the following information:

      "customfield_10030":[{"id":"ari:cloud:graph::service/xxxxxx-abce-xxxx-1234-xxx/1234abcd-xxxx-xxxx-xxxx-12ewed281xxx4"}]
      

      However, it's desired to know the Service Name and Tier.

       

      Workaround

      At the moment the way to get this information for a service is to query the GraphQL API. The GraphQL query to get the name and tier level of a service using the id returned by the GET issue query would be:

      query GetServicesById {
        devOpsServicesById(ids:["ari:cloud:graph::service/xxxxxx-abce-xxxx-1234-xxx/1234abcd-xxxx-xxxx-xxxx-12ewed281xxx4"]) {
          name
          serviceTier { 
            level 
          }
        }
      }
      

              e00fec873fe4 Sophia Do
              mdossantos Matheus
              Votes:
              132 Vote for this issue
              Watchers:
              28 Start watching this issue

                Created:
                Updated: