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,365,361
Community Members
 
Community Events
168
Community Groups

getting XRAY dataset and parameters with API

i would like to get the datasets  in an Test xray issue.

 

I had a look to the documentation for Xray Cloud: https://docs.getxray.app/display/XRAYCLOUD/GraphQL+API

But I don't know the property name for dataset in the GetTest query.

 

Where shall I find available keys for a test issue? What is an example for dataset?

thanks for your help.

1 answer

Hi @eajeoSanteup 

The dataset information is found at the TesRun level.

You need to get the TestRun information from the Test and then get the dataset information from the TestRunParameter.

https://xray.cloud.xpand-it.com/doc/graphql/testrun.doc.html

Any additional questions, please get in touch with Xray Support (http://xraysupport.getxray.app); we would gladly assist you.

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

Thanks a lot for your Answer.

 

But, in the graphical interface, the dataset and parameters are also  attached to the Test object. (when you are in a design phase)

 

Does this information available thru graphQl?

thanks

Hi @eajeoSanteup 

Sorry, currently it is not possible, but we are working to expand the GraphQL features.

Thank you.

Kind regards,
Rogério Paiva [Xray Support Team]

It seems we can export dataset to a csv file thru API
/rest/raven/2.0/api/dataset/export?testIssueKey=

 

or having the dataset information when doing a Get on the Test object
/rest/api/2/issue/testKey

"customfield_16803": {
            "datasetRestBean": {
                "params": [
                    {
                        "param": {
                            "id"1,
                            "name""Url",
                            "rank"0,
                            "combinatorial"false,
                            "info": {
                                "type""TEXT"
                            }
                        },
                        "values": [
                            {
                                "value""http://test",
                                "rank"0
                            },
                            {
                                "value""http://prod",
                                "rank"1
                            }
                        ]
                    },
                    {
                        "param": {
                            "id"2,
                            "name""Environnement",
                            "rank"1,
                            "combinatorial"false,
                            "info": {
                                "type""TEXT"
                            }
                        },
                        "values": [
                            {
                                "value""TEST",
                                "rank"0
                            },
                            {
                                "value""PROD",
                                "rank"1
                            }
                        ]
                    }
                ]
            }
        },

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events