Forums

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

[SOLVED] set the fixVersions when creating a test execution in Jira Xray via REST call?

Ejsmont, Per
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!
March 17, 2025

 

Hello 😊

I am currently working on a Python script that creates a test execution via the Jira Xray API. I have to specify the ‘fixVersions’ in the payload. Unfortunately, I always get an error back:

Error message: Unrecognised field ‘fixVersions’ (Class com.xpandit.raven.beans.execution.TestExecutionInfoBean), not marked as ignorable 

 

Here is the relevant part of my payload:

Python payload = { 
‘info": {
‘project": “Project”,
‘summary": “Execution of automated tests for release project”,
‘description": “This execution is automatically created when importing execution results from an external source”,
‘testEnvironments‘: [’XYZ"],
‘fixVersions‘: [{’set‘: [{’name": “1.0”}]}] # Here is the problem },

‘tests": tests }

I tried to change the format of the ‘fixVersions’, but the API still does not accept it.

Unfortunately, I could not find a clear answer in the Jira Xray documentation as to whether ‘fixVersions’ is supported at all in this context. 🤔

Does anyone have experience of using ‘fixVersions’ in Jira Xray? Many thanks in advance for your help! 🙏 

 

 

 

 

 

 

1 answer

0 votes
Marc - Devoteam
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.
March 17, 2025

Hi @Ejsmont, Per 

Fix version need to be set via the Jira API.

You would need to do an API call via the Jira API to update the issue created via the Xray and set the Fix version value on the issue

Ejsmont, Per
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!
March 18, 2025

Thanks, but I managed to set it when creating the test-execution using "version" (https://docs.getxray.app/display/XRAY/Import+Execution+Results) instead of fixVersions.

Suggest an answer

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

Atlassian Community Events