How to pass custom fields via Automation API

This article is for QMetry for Jira v3.x users who use automation API to upload their automation results in QMetry for Jira.

To pass the custom fields via automation API, the automation API has a parameter called Jirafields. Users need to pass their custom fields in this parameter in JSON format. For example :

"JIRAFields":
[
  {
    "testRun": [
      {
        "customfield_10200": [
          {
            "value": "true"
          },
          {
            "value": "false"
          }
        ]
      },
      {
        "customfield_10211": "this is sample.example"
      }
    ]
  },
  {
    "testScenario": [
      {
        "customfield_10206": {
          "value": "option1"
        }
      }
    ]
  },
  {
    "testCase": [
      {
        "customfield_10206": {
          "value": "option1"
        }
      }
    ]
  }
]


  • PFA sample collection file from Postman.

          Collection.postman_collection.json

Reach out to the QMetry Support for any further assistance.