Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,545
Community Members
 
Community Events
184
Community Groups

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

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]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Apr 29, 2023

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

0 votes
José Domingues [Xray]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Mar 17, 2020 • edited

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