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

How to get issue fields and data correctly from XRAY API cloud v2. Problems with the syntax

Hi everyone, its my first post here and my english its not great. 
I hope i can explain my self correctly.

First of all, i have no problem connecting to Xray cloud using Postman. I use client_id and client_secret to get de token for making the requests

 

Then i can get all xray data rellating to test (testPlan, test execution) and i have couples question. 

I see the this official documentation but i dont know if isnt a great documentation or if i dont aundertand correctly.

First question,

When i request all Test vía GraphQL like this:

{
    getTests(jql:"project='abc'",limit: 100) {
        total
        start
        limit
        results {
            issueId
            testType {
                name
                kind
            }
            jira(fields: ["assignee", "reporter"])
        }
    }
}
I know i can get the testPlans data for each Test Case like this
testPlans(limit:10){
total
start
result{
issueId
jira(field:["key"])
}

}
The results of the request it something like this
{
    getTests(limit: 100) {
        total
        start
        limit
        results {
            issueId
            testType {
                name
                kind
            }
testPlans(limit:10){
total
start
result{
issueId
jira(field:["key"])
}

} jira(fields: ["assignee", "reporter"]) } } }
This works fine.
But this is information isnt on the documentation, it seems like this part of the documentation or this other one . But when i tried to fit it up the syntax doesnt seem correct on the GraphQL, it doesnt show anything or it says its a wrong sysntax.
So my first questions it is, where i can found the syntax if i want to extract for example the test executions of a Test Case? or how it fits up the syntax of the documentation (i already put) on the request.
Sorry for the longenss of the question. The second doubt its shorter.
It is possible to get JIRA parameter on this XRAY (cloud) request of the API vía GraphQL?
For example if i want to extract the linkedIssues of a test, how can i do it?
It seems this must be on this part of the results
jira(fields: ["assignee", "reporter"])
But i have tried with -> ["Links"], but doesnt work.
I have tried like this:
jira(fields: ["assignee", "link", "reporter"])
I suspect this Jira fields are on this documentation, but "Links" or "links" does not work.
I dont know if i have explain my self correctly. You can ask any question or doubt.
I would appreciate any help. Thanks for taking your time with this post.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events