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.

 

2 answers

0 votes
Alexey Matveev
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 Champions.
May 21, 2018

About what fields are you talking?There special fields like summary, description, resolution etc which can not be hidden that easily.

Michał Szulda
May 21, 2018

I was trying to delete all fields from some screen. Both special and not but the issue's view screen still looks the same.

Alexey Matveev
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 Champions.
May 21, 2018

If you remove custom fields from the screen, they must disappear. If they did not, then you removed the fields from the wrong screen. Could you attach a screenshot?

0 votes
Yogesh Mude
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 Champions.
May 21, 2018

Hi @Michał Szulda,

Actually, i was not understood what exactly trying to say but one thing i must say about the custom field and all that whenever we are created/updated custom filed to make the changes will happen we need to reindex the project in which we are using those custom fields.

Suggest an answer

Log in or Sign up to answer