Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,228
Community Members
 
Community Events
176
Community Groups

how do I get the Automated Test value i,e Yes, No or None via jira API

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 

 

Automated_Flag.png

2 answers

0 votes

Hi @Dileep Paragond

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

0 votes

Hi @Dileep Paragond and welcome to the community,

You can use this request:

GET /rest/agile/1.0/issue/{issueIdOrKey}

@Alex Koxaras _Relational_ thanks for the response

Have tried but could not get any details for Automated test field 

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

        },

@Dileep Paragond is that specific field on the view screen? In addition what is its id?

Suggest an answer

Log in or Sign up to answer