Jira REST API, JSON to create an Issue of type Test with test detail

guilleflm October 3, 2017

So far I manage to create the Test issue, but I can't find the correct JSON structure to populate the field: customfield_11101 , name: Zephyr Teststep , required: false , type: any

I would like to be able to do something like this:

 

var issueTest = {
    "fields": {
      "issuetype": {
         "name": "Test"
      },
      "project":
      {
         "key": "STORYKEY"
      },
      "summary": "Navigate to a Different Region",
      "description": "",
      "assignee": {
          "name": "someemail@email.com"
      },
      "customfield_10014": "SOMEKEY",

      "duedate": "2018-10-03",
      "priority": {
        "name": "Blocker"
      },
      "labels": ["label1", "label2"],
      "customfield_19416": "50h",
      "customfield_19719": {
        "value": "minor"
      },
      "customfield_11101": [
        {
          "Test Step": "some text",
          "Test Data": "some text",
          "Test Result": "some text"
        },
        {
          "Test Step": "some text",
          "Test Data": "some text",
          "Test Result": "some text"
        },
        {
          "Test Step": "some text",
          "Test Data": "some text",
          "Test Result": "some text"
        }
      ]
   }
};

2 answers

0 votes
s2oBCN December 3, 2020

Did you achieve this?

0 votes
guilleflm October 4, 2017

I find a way. it is not ideal but works:
The idea is create the Test and use the new Test id to create the related steps using this:

http://docs.getzephyr.apiary.io/#reference/teststepresource/create-get-list-of-teststeps/create-new-teststep

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events