how do I get the Automated Test value i,e Yes, No or None via jira API.
Could not get it through issue class.. please find attached image for reference
The
GET /rest/api/2/issue/{{ticket_no}}
will only return the data related to the given ticket (all that you can see in the View screen) and the selected values.
You should use the API call for the related issue type like
GET rest/api/2/issue/createmeta/{{project_key}}/issuetypes/{{issue_type_id}}
This will return the details of all the fields present in the Create screen for this issue type along with the options to choose from.
To get the issue types and related ids, try
GET /rest/api/2/issue/createmeta/{{project_key}}/issuetypes
Hope this helps.
Thanks,
Vamsi
Hi @Dileep Paragond and welcome to the community,
You can use this request:
GET /rest/agile/1.0/issue/{issueIdOrKey}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras -Relational- thanks for the response
Have tried but could not get any details for Automated test field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have got response like below it doesnt have anything related automated test value
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "104411",
"self": "https://jiraserver/rest/agile/1.0/issue/104411",
"key": "4754",
"fields": {
"fixVersions": [],
"resolution": null,
"customfield_10500": null,
"customfield_10105": "1|i08qwf:",
"customfield_10501": {
"self": "https://jjiraserver/rest/api/2/customFieldOption/10503",
"value": "Not Tested",
"id": "10503",
"disabled": false
},
"lastViewed": "2022-12-09T06:58:30.784+0000",
"customfield_12002": null,
"customfield_12123": null,
"epic": {
"id": 29184,
"key": "2428",
"self": "https://jjiraserverrest/agile/1.0/epic/29184",
"name": "Functional team tasks",
"summary": "Functional team tasks",
"color": {
"key": "color_1"
},
"done": false
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.