Skip to content

TestAnalysisBulk

Bulk edit

Attempt to bulk edit test analysis

Request

put /testanalysis/bulk-edit

Request body

Attribute Type Required Notes
testAnalysisIds array yes array containing integers that define test analysis ids
executionStatusId object no contains executionStatusId (integer), toEdit(boolean) and testPlanId(integer)
reviewStatusId object no contains reviewStatusId (object containing id (integer)) and toEdit(boolean)
priorityId object no contains priorityId (object containing id (integer)) and toEdit(boolean)
nestedLabelIds object no contains nestedLabelIds (object containing id (integer)) and toEdit(boolean)
testSpaceIds object no contains testSpaceIds (object containing id (integer)) and toEdit(boolean)
testerIds object no contains testerIds (object containing id (integer)) and toEdit(boolean)
collaboratorIds object no contains testerIds (object containing id (integer)) and toEdit(boolean)
testPlanIds object no contains testPlanIds (object containing id (integer)) and toEdit(boolean)
roadmapId object no contains roadmapId (object containing id (integer)) and toEdit(boolean)

Request body example

{
  "testAnalysisIds": [
    1
  ],
  "executionStatusId": {
    "executionStatusId": {
      "id": 1
    },
    "toEdit": false,
    "testPlanId": {
      "id": 1
    }
  },
  "reviewStatusId": {
    "reviewStatusId": {
      "id": 1
    },
    "toEdit": false
  },
  "priorityId": {
    "priorityId": {
      "id": 1
    },
    "toEdit": false
  },
  "nestedLabelIds": {
    "nestedLabelIds": [
      1
    ],
    "toEdit": false
  },
  "testSpaceIds": {
    "testSpaceIds": [
      1
    ],
    "toEdit": false
  },
  "testerIds": {
    "testerIds": [
      1
    ],
    "toEdit": false
  },
  "collaboratorIds": {
    "testerIds": [
      1
    ],
    "toEdit": false
  },
  "testPlanIds": {
    "testPlanIds": [
      1
    ],
    "toEdit": false
  },
  "roadmapId": {
    "roadmapId": {
      "id": {
        "id": 1
      }
    },
    "toEdit": false
  }
}
curl --location --request PUT 'https://example.juno.one/testanalysis/bulk-edit' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
  "testAnalysisIds": [
    1
  ],
  "executionStatusId": {
    "executionStatusId": {
      "id": 1
    },
    "toEdit": false,
    "testPlanId": {
      "id": 1
    }
  },
  "reviewStatusId": {
    "reviewStatusId": {
      "id": 1
    },
    "toEdit": false
  },
  "priorityId": {
    "priorityId": {
      "id": 1
    },
    "toEdit": false
  },
  "nestedLabelIds": {
    "nestedLabelIds": [
      1
    ],
    "toEdit": false
  },
  "testSpaceIds": {
    "testSpaceIds": [
      1
    ],
    "toEdit": false
  },
  "testerIds": {
    "testerIds": [
      1
    ],
    "toEdit": false
  },
  "collaboratorIds": {
    "testerIds": [
      1
    ],
    "toEdit": false
  },
  "testPlanIds": {
    "testPlanIds": [
      1
    ],
    "toEdit": false
  },
  "roadmapId": {
    "roadmapId": {
      "id": {
        "id": 1
      }
    },
    "toEdit": false
  }
}'
import requests
import json

url = "https://example.juno.one/testanalysis/bulk-edit"

payload = json.dumps({
  "testAnalysisIds": [
    1
  ],
  "executionStatusId": {
    "executionStatusId": {
      "id": 1
    },
    "toEdit": False,
    "testPlanId": {
      "id": 1
    }
  },
  "reviewStatusId": {
    "reviewStatusId": {
      "id": 1
    },
    "toEdit": False
  },
  "priorityId": {
    "priorityId": {
      "id": 1
    },
    "toEdit": False
  },
  "nestedLabelIds": {
    "nestedLabelIds": [
      1
    ],
    "toEdit": False
  },
  "testSpaceIds": {
    "testSpaceIds": [
      1
    ],
    "toEdit": False
  },
  "testerIds": {
    "testerIds": [
      1
    ],
    "toEdit": False
  },
  "collaboratorIds": {
    "testerIds": [
      1
    ],
    "toEdit": False
  },
  "testPlanIds": {
    "testPlanIds": [
      1
    ],
    "toEdit": False
  },
  "roadmapId": {
    "roadmapId": {
      "id": {
        "id": 1
      }
    },
    "toEdit": False
  }
})
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-TenantID': 'example',
  'Content-Type': 'application/json'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n  \"testAnalysisIds\": [\n    1\n  ],\n  \"executionStatusId\": {\n    \"executionStatusId\": {\n      \"id\": 1\n    },\n    \"toEdit\": false,\n    \"testPlanId\": {\n      \"id\": 1\n    }\n  },\n  \"reviewStatusId\": {\n    \"reviewStatusId\": {\n      \"id\": 1\n    },\n    \"toEdit\": false\n  },\n  \"priorityId\": {\n    \"priorityId\": {\n      \"id\": 1\n    },\n    \"toEdit\": false\n  },\n  \"nestedLabelIds\": {\n    \"nestedLabelIds\": [\n      1\n    ],\n    \"toEdit\": false\n  },\n  \"testSpaceIds\": {\n    \"testSpaceIds\": [\n      1\n    ],\n    \"toEdit\": false\n  },\n  \"testerIds\": {\n    \"testerIds\": [\n      1\n    ],\n    \"toEdit\": false\n  },\n  \"collaboratorIds\": {\n    \"testerIds\": [\n      1\n    ],\n    \"toEdit\": false\n  },\n  \"testPlanIds\": {\n    \"testPlanIds\": [\n      1\n    ],\n    \"toEdit\": false\n  },\n  \"roadmapId\": {\n    \"roadmapId\": {\n      \"id\": {\n        \"id\": 1\n      }\n    },\n    \"toEdit\": false\n  }\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysis/bulk-edit")
  .put(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-TenantID", "example")
  .addHeader("Content-Type", "application/json")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of test analysis bulk edit has the status 200 with no response body:

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing testAnalysisIds parameter",
    "path": "/testanalysis/bulk-edit"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Test analysis with id 30 was not found.",
    "path": "/testanalysis/bulk-edit"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testanalysis/bulk-edit"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path" : "/testanalysis/bulk-edit"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path" : "/testanalysis/bulk-edit"
}

Bulk clone

Attempt to bulk clone test analysis

Request

post /testanalysis/bulkclone

Request body

Attribute Type Required Notes
projectId integer yes defines the project id
testAnalysisIds array yes array containing integers that define test analysis ids

Request body example

{
  "projectId": 1,
  "testAnalysisIds": [
    1
  ]
}
curl --location 'https://example.juno.one/testanalysis/bulkclone' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
    "projectId": 1,
    "testAnalysisIds": [
        1
    ]
}'
import requests
import json

url = "https://example.juno.one/testanalysis/bulkclone"

payload = json.dumps({
  "projectId": 1,
  "testAnalysisIds": [
    1
  ]
})
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-TenantID': 'example',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n    \"projectId\": 1,\n    \"testAnalysisIds\": [\n        1\n    ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysis/bulkclone")
  .post(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-TenantID", "example")
  .addHeader("Content-Type", "application/json")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of test analysis bulk clone has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "name": "test",
    "description": "test",
    "test_data": "test",
    "priority": {
      "id": 49,
      "name": "test",
      "priorityId": 1,
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "color": "#29a745",
      "position": 0
    },
    "statusId": {
      "id": 1,
      "name": "test",
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "state": 1,
      "color": "#29a745",
      "final": true,
      "position": 1,
      "deleted": false,
      "deleted_at": "2023-03-16T10:17:04.000Z",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z"
    },
    "approved": 1,
    "version": 1,
    "expected_result": "test",
    "ownerId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "projectId": {
      "id": 13,
      "name": "test",
      "test_case_robust": true
    },
    "time_estimate": 1,
    "estimated_from_children": 1,
    "spent": 1,
    "spent_from_children": 1,
    "editorId": 1,
    "executed_at": "2023-03-16T10:17:04.000Z",
    "lastExecStatus": {
      "id": 0,
      "name": "test",
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "state": 0,
      "color": "#29a745"
    },
    "deleted": false,
    "deleted_at": "2023-03-16T10:17:04.000Z",
    "created_at": "2023-03-16T10:17:04.000Z",
    "updated_at": "2023-03-16T10:17:04.000Z",
    "parentType": {
      "id": 2,
      "name": "test"
    },
    "parentId": 1,
    "scheduleId": {
      "id": 1,
      "name": "test",
      "description": "description",
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "ownerId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "editorId": 1,
      "statusId": {
        "id": 1,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 1,
        "color": "#29a745",
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z"
      },
      "fromDate": "2023-03-16T10:17:04.000Z",
      "toDate": "2023-03-16T10:17:04.000Z",
      "estimated": 20,
      "spent": 20,
      "created_at": "2020-06-03T00:00:00.000Z",
      "updated_at": "2020-06-03T00:00:00.000Z",
      "position": 1,
      "deleted": false,
      "deleted_at": "2020-06-03T00:00:00.000Z",
      "progress": 50,
      "childCollaborators": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "childNestedLabels": {
        "id": 22,
        "name": "test",
        "color": "#c0507e",
        "projectId": 13
      },
      "notes": {
        "id": 1,
        "scheduleChildId": 1,
        "description": "description",
        "userId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z"
      },
      "parentId": {
        "id": 1,
        "name": "test",
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "position": 1,
        "editorId": 1,
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z",
        "color": "#29a745",
        "parentCollaborators": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "children": {
          "id": 1,
          "name": "test"
        }
      }
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "color": "#c0507e",
        "projectId": 13
      }
    ],
    "collaborators": [
      {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      }
    ],
    "testers": [
      {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      }
    ],
    "testSteps": [
      {
        "id": 1,
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "precondition": "test",
        "expected_result": "test",
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z",
        "position": 1,
        "visible": false,
        "testExecution": {
          "id": 1,
          "testPlanId": {
            "id": 2,
            "name": "test"
          },
          "testStepId": 1,
          "creatorId": {
            "id": 2,
            "firstname": "test",
            "lastname": "test",
            "email": "test@juno.one",
            "avatar": "9",
            "deleted": false
          },
          "statusId": {
            "id": 0,
            "name": "test",
            "projectId": {
              "id": 13,
              "name": "test",
              "test_case_robust": true
            },
            "state": 0,
            "color": "#29a745"
          },
          "actual_result": "test",
          "duration": 1,
          "position": 1,
          "batchId": 1,
          "jirraIssueId": "DNTPPJI-1",
          "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "created_at": "2023-03-16T10:17:04.000Z",
          "updated_at": "2023-03-16T10:17:04.000Z",
          "related_issues": [
            {
              "id": 2,
              "issueTypeId": {
                "id": 2,
                "name": "test"
              },
              "statusId": {
                "id": 13,
                "name": "test",
                "color": "#29a745",
                "deleted": true,
                "final": true
              },
              "closed": true,
              "deleted": true
            }
          ],
          "related_jira_issues": [
            {
              "id": 2,
              "jiraIssueId": 14,
              "jiraKeyId": "DNTPPJI-1",
              "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
              "closed": true,
              "closed_at": "2023-03-16T12:23:30.000Z",
              "deleted": true,
              "deleted_at": true,
              "created_at": "2023-03-16T12:23:30.000Z",
              "updated_at": "2023-03-16T12:23:30.000Z"
            }
          ]
        },
        "labels": [
          {
            "id": 22,
            "name": "test",
            "previous_name": "prevtest",
            "color": "#c0507e",
            "previous_color": "#c0507e",
            "created_at": "2022-09-05T18:59:37.000Z",
            "updated_at": "2022-09-05T18:59:37.000Z",
            "projectId": 13,
            "gitlabLabelId": 2,
            "deleted": true,
            "deleted_at": "2022-09-05T18:59:37.000Z"
          }
        ]
      }
    ],
    "spent_unassigned": 1,
    "comments": [
      {
        "id": 1,
        "userId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "description": "description",
        "deleted": false,
        "deleted_at": "2023-03-16T10:17:04.000Z",
        "created_at": "2023-03-16T10:17:04.000Z",
        "updated_at": "2023-03-16T10:17:04.000Z"
      }
    ],
    "testSpaces": [
      {
        "id": 1,
        "name": "test",
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "deleted": true,
        "deleted_at": "2023-03-16T10:17:04.000Z",
        "created_at": "2023-03-16T10:17:04.000Z",
        "updated_at": "2023-03-16T10:17:04.000Z"
      }
    ]
  }
]

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing projectId parameter",
    "path": "/testanalysis/bulkclone"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Project with id 30 was not found.",
    "path": "/testanalysis/bulkclone"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testanalysis/bulkclone"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path" : "/testanalysis/bulkclone"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path" : "/testanalysis/bulkclone"
}

Bulk clone junofilter

Attempt to bulk clone filtered test analysis to another project

Request

post /testanalysis/bulkclone/junofilter?project=2

Parameters

Parameter Type Path/Query Required Notes
project integer query yes defines the project

Request body

Attribute                                  Type Required Notes
testAnalysisFilters array no array of objects containing nameOfTheField, operator and value. nameOfTheField is a string (example= ownerId), operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
labelFilters array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
collaboratorFilters array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
testerFilters array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
priorityFilter array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
statusFilter array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
testPlanIds array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
testAnalysisStatus object yes contains projectId(required integer), closed(boolean), deleted(boolean), scheduleId(integer) and type(integer)
navbar object no object containing substring (type: string)
testExecutionFilter array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered
testSpaceFilter array no array of objects containing operator and value. operator defines if filter works with "=" or "!=" and value is an integer that defines what is being filtered

Request body example

{
  "testAnalysisFilters": [
    {
      "nameOfTheField": "ownerId",
      "operator": "=",
      "value": 1
    }
  ],
  "labelFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "collaboratorFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testerFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "priorityFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "statusFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testPlanIds": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testAnalysisStatus": {
    "deleted": true,
    "closed": true,
    "projectId": 2,
    "type": 2,
    "scheduleId": 2
  },
  "navbar": {
    "substring": "string"
  },
  "testExecutionFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testSpaceFilter": [
    {
      "operator": "=",
      "value": 2
    }
  ]
}
curl --location 'https://example.juno.one/testanalysis/bulkclone/junofilter?project=2' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \
--header 'X-TenantID: example' \
--header 'Content-Type: application/json' \
--data '{
  "testAnalysisFilters": [
    {
      "nameOfTheField": "ownerId",
      "operator": "=",
      "value": 1
    }
  ],
  "labelFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "collaboratorFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testerFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "priorityFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "statusFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testPlanIds": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testAnalysisStatus": {
    "deleted": true,
    "closed": true,
    "projectId": 2,
    "type": 2,
    "scheduleId": 2
  },
  "navbar": {
    "substring": "string"
  },
  "testExecutionFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testSpaceFilter": [
    {
      "operator": "=",
      "value": 2
    }
  ]
}'
import requests
import json

url = "https://example.juno.one/testanalysis/bulkclone/junofilter?project=2"

payload = json.dumps({
  "testAnalysisFilters": [
    {
      "nameOfTheField": "ownerId",
      "operator": "=",
      "value": 1
    }
  ],
  "labelFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "collaboratorFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testerFilters": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "priorityFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "statusFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testPlanIds": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testAnalysisStatus": {
    "deleted": True,
    "closed": True,
    "projectId": 2,
    "type": 2,
    "scheduleId": 2
  },
  "navbar": {
    "substring": "string"
  },
  "testExecutionFilter": [
    {
      "operator": "=",
      "value": 1
    }
  ],
  "testSpaceFilter": [
    {
      "operator": "=",
      "value": 2
    }
  ]
})
headers = {
  'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA',
  'X-TenantID': 'example',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
val client = OkHttpClient()
val mediaType = "application/json".toMediaType()
val body = "{\n  \"testAnalysisFilters\": [\n    {\n      \"nameOfTheField\": \"ownerId\",\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"labelFilters\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"collaboratorFilters\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"testerFilters\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"priorityFilter\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"statusFilter\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"testPlanIds\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"testAnalysisStatus\": {\n    \"deleted\": true,\n    \"closed\": true,\n    \"projectId\": 2,\n    \"type\": 2,\n    \"scheduleId\": 2\n  },\n  \"navbar\": {\n    \"substring\": \"string\"\n  },\n  \"testExecutionFilter\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 1\n    }\n  ],\n  \"testSpaceFilter\": [\n    {\n      \"operator\": \"=\",\n      \"value\": 2\n    }\n  ]\n}".toRequestBody(mediaType)
val request = Request.Builder()
  .url("https://example.juno.one/testanalysis/bulkclone/junofilter?project=2")
  .post(body)
  .addHeader("Authorization", "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA")
  .addHeader("X-TenantID", "example")
  .addHeader("Content-Type", "application/json")
  .build()
val response = client.newCall(request).execute()

Response

Successful response of test analysis bulk clone junofilter has the status 200 with following response body:

[
  {
    "id": 1,
    "creatorId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "name": "test",
    "description": "test",
    "test_data": "test",
    "priority": {
      "id": 49,
      "name": "test",
      "priorityId": 1,
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "color": "#29a745",
      "position": 0
    },
    "statusId": {
      "id": 1,
      "name": "test",
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "state": 1,
      "color": "#29a745",
      "final": true,
      "position": 1,
      "deleted": false,
      "deleted_at": "2023-03-16T10:17:04.000Z",
      "created_at": "2023-03-16T10:17:04.000Z",
      "updated_at": "2023-03-16T10:17:04.000Z"
    },
    "approved": 1,
    "version": 1,
    "expected_result": "test",
    "ownerId": {
      "id": 2,
      "firstname": "test",
      "lastname": "test",
      "email": "test@juno.one",
      "avatar": "9",
      "deleted": false
    },
    "projectId": {
      "id": 13,
      "name": "test",
      "test_case_robust": true
    },
    "time_estimate": 1,
    "estimated_from_children": 1,
    "spent": 1,
    "spent_from_children": 1,
    "editorId": 1,
    "executed_at": "2023-03-16T10:17:04.000Z",
    "lastExecStatus": {
      "id": 0,
      "name": "test",
      "projectId": {
        "id": 13,
        "name": "test",
        "test_case_robust": true
      },
      "state": 0,
      "color": "#29a745"
    },
    "deleted": false,
    "deleted_at": "2023-03-16T10:17:04.000Z",
    "created_at": "2023-03-16T10:17:04.000Z",
    "updated_at": "2023-03-16T10:17:04.000Z",
    "parentType": {
      "id": 2,
      "name": "test"
    },
    "parentId": 1,
    "scheduleId": {
      "id": 1,
      "name": "test",
      "description": "description",
      "creatorId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "ownerId": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "editorId": 1,
      "statusId": {
        "id": 1,
        "name": "test",
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "state": 1,
        "color": "#29a745",
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z"
      },
      "fromDate": "2023-03-16T10:17:04.000Z",
      "toDate": "2023-03-16T10:17:04.000Z",
      "estimated": 20,
      "spent": 20,
      "created_at": "2020-06-03T00:00:00.000Z",
      "updated_at": "2020-06-03T00:00:00.000Z",
      "position": 1,
      "deleted": false,
      "deleted_at": "2020-06-03T00:00:00.000Z",
      "progress": 50,
      "childCollaborators": {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      },
      "childNestedLabels": {
        "id": 22,
        "name": "test",
        "color": "#c0507e",
        "projectId": 13
      },
      "notes": {
        "id": 1,
        "scheduleChildId": 1,
        "description": "description",
        "userId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z"
      },
      "parentId": {
        "id": 1,
        "name": "test",
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "position": 1,
        "editorId": 1,
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z",
        "color": "#29a745",
        "parentCollaborators": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "children": {
          "id": 1,
          "name": "test"
        }
      }
    },
    "labels": [
      {
        "id": 22,
        "name": "test",
        "color": "#c0507e",
        "projectId": 13
      }
    ],
    "collaborators": [
      {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      }
    ],
    "testers": [
      {
        "id": 2,
        "firstname": "test",
        "lastname": "test",
        "email": "test@juno.one",
        "avatar": "9",
        "deleted": false
      }
    ],
    "testSteps": [
      {
        "id": 1,
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "precondition": "test",
        "expected_result": "test",
        "deleted": false,
        "deleted_at": "2020-06-03T00:00:00.000Z",
        "created_at": "2020-06-03T00:00:00.000Z",
        "updated_at": "2020-06-03T00:00:00.000Z",
        "position": 1,
        "visible": false,
        "testExecution": {
          "id": 1,
          "testPlanId": {
            "id": 2,
            "name": "test"
          },
          "testStepId": 1,
          "creatorId": {
            "id": 2,
            "firstname": "test",
            "lastname": "test",
            "email": "test@juno.one",
            "avatar": "9",
            "deleted": false
          },
          "statusId": {
            "id": 0,
            "name": "test",
            "projectId": {
              "id": 13,
              "name": "test",
              "test_case_robust": true
            },
            "state": 0,
            "color": "#29a745"
          },
          "actual_result": "test",
          "duration": 1,
          "position": 1,
          "batchId": 1,
          "jirraIssueId": "DNTPPJI-1",
          "jirraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189",
          "created_at": "2023-03-16T10:17:04.000Z",
          "updated_at": "2023-03-16T10:17:04.000Z",
          "related_issues": [
            {
              "id": 2,
              "issueTypeId": {
                "id": 2,
                "name": "test"
              },
              "statusId": {
                "id": 13,
                "name": "test",
                "color": "#29a745",
                "deleted": true,
                "final": true
              },
              "closed": true,
              "deleted": true
            }
          ],
          "related_jira_issues": [
            {
              "id": 2,
              "jiraIssueId": 14,
              "jiraKeyId": "DNTPPJI-1",
              "jiraLink": "https://domain.atlassian.net/browse/DNTPPJI-189",
              "closed": true,
              "closed_at": "2023-03-16T12:23:30.000Z",
              "deleted": true,
              "deleted_at": true,
              "created_at": "2023-03-16T12:23:30.000Z",
              "updated_at": "2023-03-16T12:23:30.000Z"
            }
          ]
        },
        "labels": [
          {
            "id": 22,
            "name": "test",
            "previous_name": "prevtest",
            "color": "#c0507e",
            "previous_color": "#c0507e",
            "created_at": "2022-09-05T18:59:37.000Z",
            "updated_at": "2022-09-05T18:59:37.000Z",
            "projectId": 13,
            "gitlabLabelId": 2,
            "deleted": true,
            "deleted_at": "2022-09-05T18:59:37.000Z"
          }
        ]
      }
    ],
    "spent_unassigned": 1,
    "comments": [
      {
        "id": 1,
        "userId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "description": "description",
        "deleted": false,
        "deleted_at": "2023-03-16T10:17:04.000Z",
        "created_at": "2023-03-16T10:17:04.000Z",
        "updated_at": "2023-03-16T10:17:04.000Z"
      }
    ],
    "testSpaces": [
      {
        "id": 1,
        "name": "test",
        "creatorId": {
          "id": 2,
          "firstname": "test",
          "lastname": "test",
          "email": "test@juno.one",
          "avatar": "9",
          "deleted": false
        },
        "projectId": {
          "id": 13,
          "name": "test",
          "test_case_robust": true
        },
        "deleted": true,
        "deleted_at": "2023-03-16T10:17:04.000Z",
        "created_at": "2023-03-16T10:17:04.000Z",
        "updated_at": "2023-03-16T10:17:04.000Z"
      }
    ]
  }
]

400 Bad Request

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 400,
    "error": "Bad Request",
    "message": "The request is missing project parameter",
    "path": "/testanalysis/bulkclone/junofilter"
}

404 Not found

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 404,
    "error": "Not Found",
    "message": "Project with id 30 was not found.",
    "path": "/testanalysis/bulkclone/junofilter"
}

406 Insufficient permision

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 406,
    "error": "Missing permission for action",
    "message": "You do not have a permission for this action",
    "path": "/testanalysis/bulkclone/junofilter"
}

412 Precondition failed

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 412,
    "error": "Precondition failed",
    "message": "You do not have permission for this action",
    "path" : "/testanalysis/bulkclone/junofilter"
}

500 Unknown error

{
    "timestamp": "2022-02-16T17:11:34.422+00:00",
    "status": 500,
    "error": "Unknown",
    "message": "There was a problem with your request. Please contact your administrator.",
    "path" : "/testanalysis/bulkclone/junofilter"
}