Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to raise with rest api and send

Seid Muxtarov November 8, 2022

Hi

How to raise request in servise management with REST API , and add reporter field and customer request type in this JSON. 

Our JSON:

 

{
    "fields":
    {
        "project":
        {
            "key":"**"
        },
        "summary":"Test",
        "description": {
            "type""doc",
            "version":1,
            "content":[
                {
                    "type""paragraph",
                    "content": [
                        {
                            "type""text",
                            "text""Test Description"

                        }
                    ]
                }
            ]

        },
        "issuetype":
        {
            "name":"Request"
        }
    }
    }
}

1 answer

1 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
November 8, 2022

Hi @Seid Muxtarov,

Welcome to Atlassian Community! 

To create a request via API you have to use the JSM API and the Create customer request endpoint. The JSON would look something like this:

{
"requestParticipants": [
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae"
],
"serviceDeskId": "10",
"requestTypeId": "25",
"requestFieldValues": {
"summary": "Request JSD help via REST",
"description": "I need a new *mouse* for my Mac"
}
}
Seid Muxtarov November 9, 2022

Hi @Mikael Sandberg ,

Thanks for your answer ,I also wanted to know how to add the "Reporter" field.

Seid Muxtarov November 9, 2022

How i can set my authorization with bearer token , and how get it 

Suggest an answer

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

Atlassian Community Events