Using selected fields only in JIRA API ?

Mansi_Gusain February 10, 2025

 

Hey, I want to access a few relevant fields only, from the following API- 

 

 

https://<domain-name>/rest/api/3/issue/OS-663 

 

when I hit it in postman, I am getting all the fields, just need the important and relevant data only from the api. 

 

I tried getting the author id and comments only, no success please help if this can be done.

1 answer

1 accepted

1 vote
Answer accepted
Vishal Biyani
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.
February 10, 2025

@Mansi_Gusain 

In Query Params, add a variable 

fields and value as the relevant field that you need e.g. summary, priority etc

Mansi_Gusain February 11, 2025

https://<domain-name>/rest/api/3/issue/OS-663?summary like this?

Vishal Biyani
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.
February 11, 2025

like this

https://<domain-name>/rest/api/3/issue/OS-663?fields=summary

Like Dirk Ronsmans likes this
Mansi_Gusain February 11, 2025

Thankyou so much!!

Vishal Biyani
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.
February 11, 2025

Great. If this works for you, please accept the answer

Mansi_Gusain February 11, 2025

Brother one more help . How can I get the space id and parent id ?

I want to create a confluence page from postman how can i do that?

The api i am using is- https://<domain>/wiki/api/v2/pages and the body -

 

{
  "spaceId": "<string>",
  "status": "<string>",
  "title": "POSTMAN",
  "parentId": "<string>",
  "body": {
    "representation": "storage",
    "value": "hi"
  }
}

 

 

image.png

Vishal Biyani
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.
February 11, 2025

The response is a json object. You will need to parse it. This is enclosed inside results list

Mansi_Gusain February 11, 2025

are there some permission required to get the spaces?

Like from the space end?

Mansi_Gusain February 11, 2025

Okay............... but where can i find the space id and parent id? from 

Vishal Biyani
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.
February 11, 2025

I don't have much experience using confluence APIs and Postman. Better to post the question tagging confluence, so that folks who are experienced in Confluence APIs can respond.

 

In terms of permissions, given that confluence space has permissions, so you would need to have permissions to query the space.

 

Mansi_Gusain February 11, 2025

Okay thanks for your help.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events