The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to add custom fields when importing JUnit XML reports to XRay using the REST API

Alain Delfin
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!
April 7, 2022

Our JIRA instance is customized. We are using some additional fields like "

Regions Origins" to know the origin of a ticket. This field is mandatory to create an US, a defect or a test.
When I try to import a JUnit test report generated by postman using the XRay API, there is no information related to the custom field "Regions Origins", so consequently it returns the following error
        "error": [
            {
                "messages": [
                    "Regions Origins is mandatory"
                ],
                "testDefinition""CountryGradeRestApi112.2XX GET /countryGradeCodes"
            }
        ]
So the question is what do I add in my XML report in order to specify the custom fields ?
Thank you for you help
Alain

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Scott Matthews
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!
October 7, 2022

I am curious about this as well. We would like to specify development Jira tickets in the junit xml report in such a way that the x-ray ticket links to the development ticket.