How to identify issue provided by Zephyr for JIRA plugin

MohammedKamil March 6, 2015

I am fetching issuetypes from JIRA using the REST Api's . After i included the Zephyr for JIRA plugin , the issue type TEST is also available in the response . My doubt is how to identify , that this issuetype (Test) is provided by Zephyr Plug-In. Because , i can able to change the name of the issue Test to name of my interest (cause it is the default name provided by JIRA). One thing i found is in the response of (/rest/api/2/issuetype) , which retrieves all the issuetypes in JIRA , with the help of id attribute , i can able to identify it , that the issue is provided by Zephyr (even the name is changed to some random name) .Again in this approach , i got stuck like , I am having two JIRA instances , one is of version 6.0 and the other is of version 6.2 , when i see the response of (/rest/api/2/issuetype) this api , the id  of issuetype test is different , i.e in v 6.2 the id is 10100  and in v 6.0 it is .

 

Again my doubt is how to uniquely identify that this JIRA instance have a issue that is provided by Zephyr . I have searched in their documentation https://docs.atlassian.com/jira/REST/latest/ , but i couldnt find any . Any suggestions ??

1 answer

1 accepted

1 vote
Answer accepted
Swapna Kumar Vemula [Zephyr]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 9, 2015

Hello Kamil,

The issue id of the issuetype Test varies with each installation of Zephyr for JIRA. It will take the Id available by default starting from 10000. If you fetch the issuetypes using JIRA rest api /rest/api/2/issuetype, the description will let you know the issuetype belongs to Zephyr or not as below

 {
    "self": "http://www.example.com/rest/api/2/issuetype/10100",
    "id": "10100",
    "description": "This Issue Type is used to create Zephyr Test within Jira.",
    "iconUrl": "http://www.example.com/download/resources/com.thed.zephyr.je/images/icons/ico_zephyr_issuetype.png",
    "name": "Test",
    "subtask": false
  }

If you get a different Id(ex:9) and was not sure whether it belongs to Zephyr, you can confirm this from Zephyr General Information page by navigating to Administration > Add-ons > Zephyr for JIRA > General Information and check the Issue Type Test ID match the one you fetched.

General_information.png

 

Regards,

Zephyr Support

MohammedKamil March 9, 2015

Thanks a lot Swapna Kumar Vemula :) . It cleared me . I have an another doubt . In our JIRA instance , I can able to rename the issue type "Test" to some random name of our interest and still it has the same functionality (Having Test steps and other functionality ) , which is not available in other issue types. Suppose i rename Test to scenario , how can i able to identify that this issue type is provided by Zephyr add-on.(when i pull all the issue types under the project using the required REST API ). Is there a way to recognize this ? The reason i am asking this is we are integrating our application with Jira . To start with the integration we need to check first whether Zephyr is configured or not . If it is configured , how to identify the issue type , which is provided by it ?(i.e provided by Zephyr) . Cause we have the privilege to change the name of Test issue type . I have looked at both https://docs.atlassian.com/jira/REST/latest/ (Jira REST API documentation) and http://docs.getzephyr.apiary.io/# (Zephyr REST API documentation) , i couldn't find any . Any suggestions ??

Suggest an answer

Log in or Sign up to answer