Add manual test steps for Xray in Jira automation rule

Christopher Dick July 24, 2024

Hello there,

when executing an automation rule in Jira to add Xray test steps to a test, the following error message appears: "Unknown fields set during creation. These may not be available for the project/type. Check your configuration for custom fields. Fields ignored - Epic Name (customfield_10004)."

The JSON template from the Xray documentation was used: https://docs.getxray.app/display/XRAY/Tests+-+REST

Probably a different number was used for customfield_10004 in our Jira cloud. How can we find out this number?

Best regards,

Christopher

3 answers

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2024

Hi @Christopher Dick 

The docu link provided in your original post links to Server-DC. According to your description you are running on cloud.

Jira actions (like creating issues) and XRAY actions (like adding test steps) are handled in different APIs therefore would need 2 different API calls.

In XRAY I guess it´s best done with the GraphQL API:
https://us.xray.cloud.getxray.app/doc/graphql/addteststep.doc.html

Best
Stefan 

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 14, 2024

Hey @Christopher Dick 

any further input from your side? Even if your requirement could not be solved here would you be so kind to accept any answer in order to mark this question as solved (as there is no possibility at the moment).

Additionally I recommend to reach out to the vendor support:

https://www.getxray.app/contact-us

 

Best
Stefan

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 2, 2024

Hi @Christopher Dick 

Please be so kind to give feedback to your posts/questions so that questions can be closed/resolved.

Thanks in advance.

Best
Stefan

0 votes
Manuel
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.
November 3, 2024

Hi @Christopher Dick ,

the test steps information is exposed as a custom field in Xray for Jira server/dc. However, in Xray cloud that information is managed internally by Xray and cannot be managed through a custom field.

What you want may be achieved through automation but requires invoking the graphql API for that, namely the addTestStep mutation.

There's a tutorial provided by Xray that shows some examples of using Xray together with Jira automation, for example for adding test steps. Please have a look at it as it provides exactly what you're looking for. I

0 votes
Adolfo Casari
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.
July 24, 2024

@Christopher DickCan you share a screenshot with the automation?

To find a customfield id:

https://confluence.atlassian.com/jirakb/how-to-find-any-custom-field-s-ids-744522503.html

Christopher Dick July 24, 2024

Xray does not use the standard Jira fields. Within the test details, the Xray fields for test steps are displayed/embedded similar to an iFrame. No information about the test step fields can be retrieved using the browser's Explore function or a JQL query. Unfortunately, I cannot generate screenshots from the system environment.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events