Set issue properties when create bulk issues

Hi

When creating bulk issues using the REST API /rest/api/3/issue/bulk there is a body parameter called Additional Properties. Can this be used to set the issue property (i.e. that set using /rest/api/3/issue/properties/{propertyKey}). If so does anyone have an example?

Thanks
Paul

1 Like

Hello @paul,

Instead of the Additional Properties, I think you might be more interested in properties in issueUpdates request parameter. Using Bulk create issue REST API, you can test this basic request body with an entity property being set.

{
  "issueUpdates": [
    {
      "fields": {
        "summary": "My summary",
        "issuetype": {
          "name": "Story"
        },
        "project": {
          "id": "10000"
        }
      },
      "properties": [
        {
          "key": "testType",
          "value": {
            "name": "myTestType"
          }
        }
      ]
    }
  ]
}

Hope this helps.
Ian

Hi @ianRagudo, sorry about the delay in replying and thanks very much, it’s just what I wanted.

Thanks
Paul

1 Like

No worries and I’m glad you’re able to solve the issue.

1 Like