Forums

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

set custom field value of a test run

Dotan Brand
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 12, 2022

Hello,

with Xray graphql API,  I can create new test executions and add tests run.

there is a custom field for a link to report. i could not find a method or a call to set the value of custom field. 

suggestions?

1 answer

0 votes
Rogério Paiva - Xray Xporter
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.
February 22, 2022

Hi @Dotan Brand 

What kind of custom fields are you using, Jira custom fields or Xray custom fields?

If you are using a Jira custom field, you need to use Jira API for this: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-put

If you are using Xray custom field, you can use the mutation method "updateTestRun" with the argument "customFields": https://xray.cloud.getxray.app/doc/graphql/updatetestrun.doc.html

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer