Forums

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

Failing to set Insight field when creating Bug issue via REST API

Magnus Ljungkrantz October 4, 2022

I am working on creation of Bug issues via REST API but I am having trouble setting the value of an Insight field. Basically I am doing exactly what is described under "Create Issue" on
https://confluence.atlassian.com/insightapps/insight-with-jira-rest-api-1085180905.html

I am able to update the Insight field doing what is described under "Update Issue" in the same article. 

I do not receive any error messages when I create, and the Bug does get created, it is just that the Insight field does not get populated. Any ideas? 

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 4, 2022

Hi @Magnus Ljungkrantz , can you share your configuration? (REST API endpoint + JSON + authentication...)

Magnus Ljungkrantz October 4, 2022

Currently experimenting from Postman.

Endpoint: rest/api/2/issue/

Method: POST

JSON:

{
    "fields": {
        "project": {
            "key""DBSQA"
        },
        "issuetype": {
            "name""Bug"
        },
        "summary""Created via Jira REST API",
        "description""Some description.",
        "customfield_11617": [{"key""DB-115"}]
    }
}

Authentication is the same regardless if I create or update. I have tried both basic authentication using my user/password and bearer token using API key. No errors reported either way. 

Martin Bayer _MoroSystems_ s_r_o__
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 4, 2022

Ok and can you share the version of your Jira Service Management? I guess you are on Data Center, right?

Magnus Ljungkrantz October 4, 2022

Yes, Data Center. Version of Jira Service Management is 4.20.11. 

Suggest an answer

Log in or Sign up to answer