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

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,556,047
Community Members
 
Community Events
184
Community Groups

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

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

This is my call in java.

The normal creation of an test via rest api works fine but if I insert die customfield for the params than I get the 400.

I have tried some variants of the customfield structure, e.g. with an without the the datasetRestBean tag but nothing works. it returns always the 400.

 

I haven't also find a spezial operation like it exists for adding comments to an issue like "...rest/api/2/issue/<<issueKey>>/comment" to add params to an test issue.

 

JiraConnector_src_Example_1.png

 

JiraConnector_src_Example_2.png

 

Hopefully someone can help me with this problem. Thanks

and this is the answer I get:

 

JiraConnector_src_Example_3.png

Dear Patrick,

did you have found a solution for this problem.

At the moment I have the same and have no idea how to solve it.

Unfortunately I can't also find any general documentation for such a problem.

The normal customfield operations do not work in this case or I'm wrong in using it.

 

@atlassian-Support-Team: could you please provide me a desription how to solve this problem?

 

Many thanks

 

Detlev

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events