Forums

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

Dataset. how to create a dataset and assigning to a test thru the API?

patrickalbaret
January 26, 2022

From a Test, I'm able to retrieve the dataset information,

but unfortunatly I don't know how to create a Test issue with a dataset.

 

When I'm doing my POST: https://jiraServer/rest/api/2/issue

 

with the dataset custom field info

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

 I get the error:

{
    "errorMessages": [],
    "errors": {
        "customfield_16803""Field 'customfield_16803' cannot be set. It is not on the appropriate screen, or unknown."
    }
}
How can I create a Test with a dataset?
Thanks for help.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events