Forums

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

How to set values in the system fields of the Test execution using info.json

leonardustt
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 29, 2020

Hi,

I am trying to use POST /rest/raven/1.0/import/execution/cucumber/multipart to import test execution to jira from cucumber-result.json and info.json to set desired values in the fields of the newly created Test Execution ticket. I haven't any problem with setting values to the custom fields of the Test Execution, but if I try to set values to the system fields like Affects Version's and Fix Version's the fields still are empty after sending request. 

This is the output of get request for field Affects Version/s

{        "id": "versions",        "name": "Affects Version/s",        "custom": false,        "orderable": true,        "navigable": true,        "searchable": true,        "clauseNames": [            "affectedVersion"        ],        "schema": {            "type": "array",            "items": "version",            "system": "versions"        }    }

This is the output of the request for field Fix Version's field

{        "id": "fixVersions",        "name": "Fix Version/s",        "custom": false,        "orderable": true,        "navigable": true,        "searchable": true,        "clauseNames": [            "fixVersion"        ],        "schema": {            "type": "array",            "items": "version",            "system": "fixVersions"        }    }

 

My info json looks like this

{
"fields": {
"project": {
"key": "IM"
},
"summary": "Test Execution for cucumber Execution",
"issuetype": {
"id": "10202"
},
"fixVersions": [
{"Fix Version/s": "Rollout"}
],
"versions": [
{"Affects Version/s": "Rollout"}
]

}

}

 

2 answers

0 votes
Jarosław Solecki _Deviniti_
Atlassian Partner
April 29, 2023

Hi @leonardustt you may try  Dynamic Forms for Jira to achieve that.

0 votes
José Domingues [Xray]
Atlassian Partner
March 17, 2020

Hi Leonard, 

We suggest opening a ticket on our Service Desk in order to better help you with this issue.

Best Regards,
Team Xray 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events