Skip to content

IssueJunofilter

Issue junofilter

Attempt to filter issues.

Request

post /issues/junofilter?limit=10&page=1&properties=test&sort=ASC

Parameters

Parameter Type Path/Query Required Notes
limit integer query yes the maximum number of objects that junofilter returns as a response
page integer query yes page number that the filter returns
properties string query yes value that defines the filter
sort string query yes ascending or descending sorting of the filter results

Request body

Attribute                            Type Required Notes
issueFilters array no array of objects containing nameOfTheField, operator and value. nameOfTheField is a string (example= assignedId), 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
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
timeParameters object no object containing overdue, today, inSevenDays and others defines time frame of issue
issueStatus object yes contains projectId (required), scheduleId, type, closed and deleted
projectStatus object no contains archived and closed
navbar object no object containing substring (type: string)
statusOrder object no array of objects containing statusId, orderBy and orderDirection

Request body example

json { "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null, "statusOrder": [] }

curl curl --location 'https://example.juno.one/issues/junofilter' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \ --header 'X-TenantID: example' \ --header 'Content-Type: application/json' \ --data '{ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null, "statusOrder": [] }'

````python import requests import json

url = "https://example.juno.one/issues/junofilter"

payload = json.dumps({ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": None, "issueStatus": { "deleted": False, "closed": False, "projectId": "401", "scheduleId": "510", "type": None }, "projectStatus": { "archived": False, "closed": False }, "navbar": None, "statusOrder": [] }) 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) ````

kotlin val client = OkHttpClient() val mediaType = "application/json".toMediaType() val body = "{\n \"issueFilters\": [\n {\n \"nameOfTheField\": \"creatorId\",\n \"operator\": \"=\",\n \"value\": \"14\"\n },\n {\n \"nameOfTheField\": \"assignedId\",\n \"operator\": \"=\",\n \"value\": \"150\"\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": \"1539\"\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"!=\",\n \"value\": \"1639\"\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": \"2844\"\n }\n ],\n \"projectIdList\": [],\n \"timeParameters\": null,\n \"issueStatus\": {\n \"deleted\": false,\n \"closed\": false,\n \"projectId\": \"401\",\n \"scheduleId\": \"510\",\n \"type\": null\n },\n \"projectStatus\": {\n \"archived\": false,\n \"closed\": false\n },\n \"navbar\": null,\n \"statusOrder\": []\n}".toRequestBody(mediaType) val request = Request.Builder() .url("https://example.juno.one/issues/junofilter") .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 issue junofilter has the status 200 with following response body: json { "data": [ { "id": 2366, "name": "test", "description": "test", "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "issueTypeId": { "id": 2, "name": "test" }, "parentId": null, "priorityId": { "id": 49, "name": "test", "priorityId": 1, "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "color": "#29a745", "position": 0 }, "creatorId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "statusId": { "id": 13, "name": "test", "color": "#29a745", "deleted": true, "final": true }, "assignedId": "string", "lastUpdator": "string", "private": true, "dueDate": "2023-03-16T10:17:04.000Z", "closed": true, "closed_at": "2023-03-16T10:17:04.000Z", "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", "estimated": 0, "estimated_from_children": 0, "spent": 0, "spent_from_children": 0, "parentType": "string", "gitLabIssueId": null, "gitLabIssueIid": null, "scheduleId": { "id": 1, "name": "test" }, "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" } ], "collaborators": [ { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false } ], "comments": [ { "id": 2, "userId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "description": "test", "created_at": "2022-09-05T18:59:37.000Z", "updated_at": "2022-09-05T18:59:37.000Z", "deleted": true, "deleted_at": "2022-09-05T18:59:37.000Z" } ], "testExecutions": [ { "id": 22, "testPlanId": "string", "testStepId": 22, "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": null, "duration": 0, "position": 1, "batchId": 1, "jiraIssueId": "14", "jiraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189", "created_at": "2023-03-16T12:23:30.000Z", "updated_at": "2023-03-16T12:23:30.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" } ] } ] } ], "first": true, "last": true, "totalPages": 1, "totalElements": 1, "numberOfElements": 1, "limit": 10, "pageNumber": 1 }

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

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

406 Insufficient permision json { "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": "/issues/junofilter" }

500 Unknown error json { "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": "/issues/junofilterclosed" }

Issue junofilter closed

Attempt to filter closed issues

Request

post /issues/junofilterclosed

Parameters

Parameter Type Path/Query Required Notes
limit integer query yes the maximum number of objects that junofilter returns as a response
page integer query yes the page number that the filter returns
properties string query yes value that defines the filter
sort string query yes ascending or descending sorting of the filter results

Request body

Attribute                            Type Required Notes
issueFilters array no array of objects containing nameOfTheField, operator and value. nameOfTheField is a string (example= assignedId), 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
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
timeParameters object no object containing overdue, today, inSevenDays and others defines time frame of issue
issueStatus object yes contains projectId (required), scheduleId, type, closed and deleted
projectStatus object no contains archived and closed
navbar object no object containing substring (type: string)
statusOrder object no array of objects containing statusId, orderBy and orderDirection

Request body example

json { "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null, "statusOrder": [] }

curl curl --location 'https://example.juno.one/issues/junofilterclosed' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \ --header 'X-TenantID: example' \ --header 'Content-Type: application/json' \ --data '{ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null, "statusOrder": [] }'

````python import requests import json

url = "https://example.juno.one/issues/junofilterclosed"

payload = json.dumps({ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": None, "issueStatus": { "deleted": False, "closed": False, "projectId": "401", "scheduleId": "510", "type": None }, "projectStatus": { "archived": False, "closed": False }, "navbar": None, "statusOrder": [] }) 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) ````

kotlin val client = OkHttpClient() val mediaType = "application/json".toMediaType() val body = "{\n \"issueFilters\": [\n {\n \"nameOfTheField\": \"creatorId\",\n \"operator\": \"=\",\n \"value\": \"14\"\n },\n {\n \"nameOfTheField\": \"assignedId\",\n \"operator\": \"=\",\n \"value\": \"150\"\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": \"1539\"\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"!=\",\n \"value\": \"1639\"\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": \"2844\"\n }\n ],\n \"projectIdList\": [],\n \"timeParameters\": null,\n \"issueStatus\": {\n \"deleted\": false,\n \"closed\": false,\n \"projectId\": \"401\",\n \"scheduleId\": \"510\",\n \"type\": null\n },\n \"projectStatus\": {\n \"archived\": false,\n \"closed\": false\n },\n \"navbar\": null,\n \"statusOrder\": []\n}".toRequestBody(mediaType) val request = Request.Builder() .url("https://example.juno.one/issues/junofilterclosed") .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 issue junofilter closed has the status 200 with following response body: json { "data": [ { "id": 2366, "name": "test", "description": "test", "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "issueTypeId": { "id": 2, "name": "test" }, "parentId": null, "priorityId": { "id": 49, "name": "test", "priorityId": 1, "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "color": "#29a745", "position": 0 }, "creatorId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "statusId": { "id": 13, "name": "test", "color": "#29a745", "deleted": true, "final": true }, "assignedId": "string", "lastUpdator": "string", "private": true, "dueDate": "2023-03-16T10:17:04.000Z", "closed": true, "closed_at": "2023-03-16T10:17:04.000Z", "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", "estimated": 0, "estimated_from_children": 0, "spent": 0, "spent_from_children": 0, "parentType": "string", "gitLabIssueId": null, "gitLabIssueIid": null, "scheduleId": { "id": 1, "name": "test" }, "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" } ], "collaborators": [ { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false } ], "comments": [ { "id": 2, "userId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "description": "test", "created_at": "2022-09-05T18:59:37.000Z", "updated_at": "2022-09-05T18:59:37.000Z", "deleted": true, "deleted_at": "2022-09-05T18:59:37.000Z" } ], "testExecutions": [ { "id": 22, "testPlanId": "string", "testStepId": 22, "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": null, "duration": 0, "position": 1, "batchId": 1, "jiraIssueId": "14", "jiraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189", "created_at": "2023-03-16T12:23:30.000Z", "updated_at": "2023-03-16T12:23:30.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" } ] } ] } ], "first": true, "last": true, "totalPages": 1, "totalElements": 1, "numberOfElements": 1, "limit": 10, "pageNumber": 1 }

400 Bad Request json { "timestamp": "2022-02-16T17:11:34.422+00:00", "status": 400, "error": "Bad Request", "message": "The request is missing project id", "path": "/issues/junofilterclosed" }

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

406 Insufficient permision json { "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": "/issues/junofilterclosed" }

500 Unknown error json { "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": "/issues/junofilterclosed" }

Issue board junofilter

Attempt to filter issue board

Request

post /issues/junofilter/issue-board

Parameters

Parameter Type Path/Query Required Notes
limit integer query yes the maximum number of objects that junofilter returns as a response
page integer query yes page number that the filter returns
properties string query yes a value that defines the filter
sort string query yes ascending or descending sorting of the filter results
excludedStatuses array query yes array containing integers defining which statuses (defined by id) will be excluded from the filter response

Request body

Attribute                            Type Required Notes
issueFilters array no array of objects containing nameOfTheField, operator and value. nameOfTheField is a string (example= assignedId), 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
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
timeParameters object no object containing overdue, today, inSevenDays and others defines time frame of issue
issueStatus object yes contains projectId (required), scheduleId, type, closed and deleted
projectStatus object no contains archived and closed
navbar object no object containing substring (type: string)
statusOrder object no array of objects containing statusId, orderBy and orderDirection

Request body example

json { "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": { "substring": "b" }, "statusOrder": [] }

curl curl --location 'https://example.juno.one/issues/junofilter/issue-board' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4MjMzOTQwNn0.XWAuQmaKsv5fh60umfYO2gMwtXUjWLWsy6HbDt_fQXV6HPhgQhMkqmmzhWaCXsUP9h-dvKrQowLdqBqHHTYQAA' \ --header 'x-tenantID: example' \ --header 'Content-Type: application/json' \ --data '{"issueFilters": [{"nameOfTheField":"creatorId", "operator":"=", "value":"14"}, {"nameOfTheField":"assignedId", "operator":"=", "value":"150"}], "labelFilters":[{ "operator":"=", "value":"1539"}], "priorityFilter":[{ "operator":"!=", "value":"1639"}], "statusFilter":[{ "operator":"=", "value":"2844"}], "projectIdList":[], "timeParameters":null, "issueStatus":{ "deleted":false, "closed":false, "projectId":"401", "scheduleId":"510", "type":null}, "projectStatus":{ "archived":false, "closed":false}, "navbar":{"substring":"b"}, "statusOrder":[]}'

````python import requests import json

url = "https://example.juno.one/issues/junofilter/issue-board"

payload = json.dumps({ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": None, "issueStatus": { "deleted": False, "closed": False, "projectId": "401", "scheduleId": "510", "type": None }, "projectStatus": { "archived": False, "closed": False }, "navbar": { "substring": "b" }, "statusOrder": [] }) 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)

````

kotlin val client = OkHttpClient() val mediaType = "application/json".toMediaType() val body = "{\n \"issueFilters\": [\n {\n \"nameOfTheField\": \"creatorId\",\n \"operator\": \"=\",\n \"value\": \"14\"\n },\n {\n \"nameOfTheField\": \"assignedId\",\n \"operator\": \"=\",\n \"value\": \"150\"\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": \"1539\"\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"!=\",\n \"value\": \"1639\"\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": \"2844\"\n }\n ],\n \"projectIdList\": [],\n \"timeParameters\": null,\n \"issueStatus\": {\n \"deleted\": false,\n \"closed\": false,\n \"projectId\": \"401\",\n \"scheduleId\": \"510\",\n \"type\": null\n },\n \"projectStatus\": {\n \"archived\": false,\n \"closed\": false\n },\n \"navbar\": {\n \"substring\": \"b\"\n },\n \"statusOrder\": []\n}".toRequestBody(mediaType) val request = Request.Builder() .url("https://example.juno.one/issues/junofilter/issue-board") .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 issue board junofilter has the status 200 with following response body: json { "data": [ { "id": 2366, "name": "test", "description": "test", "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "issueTypeId": { "id": 2, "name": "test" }, "parentId": null, "priorityId": { "id": 49, "name": "test", "priorityId": 1, "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "color": "#29a745", "position": 0 }, "creatorId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "statusId": { "id": 13, "name": "test", "color": "#29a745", "deleted": true, "final": true }, "assignedId": "string", "lastUpdator": "string", "private": true, "dueDate": "2023-03-16T10:17:04.000Z", "closed": true, "closed_at": "2023-03-16T10:17:04.000Z", "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", "estimated": 0, "estimated_from_children": 0, "spent": 0, "spent_from_children": 0, "parentType": "string", "gitLabIssueId": null, "gitLabIssueIid": null, "scheduleId": { "id": 1, "name": "test" }, "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" } ], "collaborators": [ { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false } ], "comments": [ { "id": 2, "userId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "description": "test", "created_at": "2022-09-05T18:59:37.000Z", "updated_at": "2022-09-05T18:59:37.000Z", "deleted": true, "deleted_at": "2022-09-05T18:59:37.000Z" } ], "testExecutions": [ { "id": 22, "testPlanId": "string", "testStepId": 22, "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": null, "duration": 0, "position": 1, "batchId": 1, "jiraIssueId": "14", "jiraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189", "created_at": "2023-03-16T12:23:30.000Z", "updated_at": "2023-03-16T12:23:30.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" } ] } ] } ], "first": true, "last": true, "totalPages": 1, "totalElements": 1, "numberOfElements": 1, "limit": 10, "pageNumber": 1 }

400 Bad Request json { "timestamp": "2022-02-16T17:11:34.422+00:00", "status": 400, "error": "Bad Request", "message": "The request is missing excludedStatuses parameter", "path": "/issues/junofilter/issue-board" }

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

406 Insufficient permision json { "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": "/issues/junofilter/issue-board" }

500 Unknown error json { "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": "/issues/junofilter/issue-board" }

Issue dashboard junofilter

Attempt to filter issue dashboard

Request

post /issues/junofilter/dashboard

Parameters

Parameter Type Path/Query Required Notes
limit integer query yes the maximum number of objects that junofilter returns as a response
page integer query yes the page number that the filter returns
properties string query yes the value that defines the filter
sort string query yes ascending or descending sorting of the filter results

Request body

Attribute                            Type Required Notes
issueFilters array no array of objects containing nameOfTheField, operator and value. nameOfTheField is a string (example= assignedId), 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
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
projectIdList array no array of integers defining list of project ids
timeParameters object no object containing overdue, today, inSevenDays and others defines time frame of issue
issueStatus object no contains projectId, scheduleId, type, closed and deleted
projectStatus object no contains archived and closed
navbar object no object containing substring (type: string)

Request body example

````json { "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null }

````

curl curl --location 'https://example.juno.one/issues/junofilter/dashboard' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0QGp1bm8ub25lIiwidGVuYW50SUQiOiJkZXZlbG9wbWVudCIsImV4cCI6MTY4NDQ4MzYyNn0.cYdUo4oiHnkdAywSAb7EFus9PFg-2FYHZPj4gdMML-mKgUVZw9fewOo4QK6U3PqCzGWjFVksz8HULzyKMnV8AA' \ --header 'X-TenantID: example' \ --header 'Content-Type: application/json' \ --data '{ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": null, "issueStatus": { "deleted": false, "closed": false, "projectId": "401", "scheduleId": "510", "type": null }, "projectStatus": { "archived": false, "closed": false }, "navbar": null }'

````python import requests import json

url = "https://example.juno.one/issues/junofilter/dashboard"

payload = json.dumps({ "issueFilters": [ { "nameOfTheField": "creatorId", "operator": "=", "value": "14" }, { "nameOfTheField": "assignedId", "operator": "=", "value": "150" } ], "labelFilters": [ { "operator": "=", "value": "1539" } ], "priorityFilter": [ { "operator": "!=", "value": "1639" } ], "statusFilter": [ { "operator": "=", "value": "2844" } ], "projectIdList": [], "timeParameters": None, "issueStatus": { "deleted": False, "closed": False, "projectId": "401", "scheduleId": "510", "type": None }, "projectStatus": { "archived": False, "closed": False }, "navbar": None }) 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) ````

kotlin val client = OkHttpClient() val mediaType = "application/json".toMediaType() val body = "{\n \"issueFilters\": [\n {\n \"nameOfTheField\": \"creatorId\",\n \"operator\": \"=\",\n \"value\": \"14\"\n },\n {\n \"nameOfTheField\": \"assignedId\",\n \"operator\": \"=\",\n \"value\": \"150\"\n }\n ],\n \"labelFilters\": [\n {\n \"operator\": \"=\",\n \"value\": \"1539\"\n }\n ],\n \"priorityFilter\": [\n {\n \"operator\": \"!=\",\n \"value\": \"1639\"\n }\n ],\n \"statusFilter\": [\n {\n \"operator\": \"=\",\n \"value\": \"2844\"\n }\n ],\n \"projectIdList\": [],\n \"timeParameters\": null,\n \"issueStatus\": {\n \"deleted\": false,\n \"closed\": false,\n \"projectId\": \"401\",\n \"scheduleId\": \"510\",\n \"type\": null\n },\n \"projectStatus\": {\n \"archived\": false,\n \"closed\": false\n },\n \"navbar\": null\n}".toRequestBody(mediaType) val request = Request.Builder() .url("https://example.juno.one/issues/junofilter/dashboard") .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 issue dashboard junofilter has the status 200 with following response body: json { "data": [ { "id": 2366, "name": "test", "description": "test", "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "issueTypeId": { "id": 2, "name": "test" }, "parentId": null, "priorityId": { "id": 49, "name": "test", "priorityId": 1, "projectId": { "id": 13, "name": "test", "test_case_robust": true }, "color": "#29a745", "position": 0 }, "creatorId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "statusId": { "id": 13, "name": "test", "color": "#29a745", "deleted": true, "final": true }, "assignedId": "string", "lastUpdator": "string", "private": true, "dueDate": "2023-03-16T10:17:04.000Z", "closed": true, "closed_at": "2023-03-16T10:17:04.000Z", "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", "estimated": 0, "estimated_from_children": 0, "spent": 0, "spent_from_children": 0, "parentType": "string", "gitLabIssueId": null, "gitLabIssueIid": null, "scheduleId": { "id": 1, "name": "test" }, "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" } ], "collaborators": [ { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false } ], "comments": [ { "id": 2, "userId": { "id": 2, "firstname": "test", "lastname": "test", "email": "test@juno.one", "avatar": "9", "deleted": false }, "description": "test", "created_at": "2022-09-05T18:59:37.000Z", "updated_at": "2022-09-05T18:59:37.000Z", "deleted": true, "deleted_at": "2022-09-05T18:59:37.000Z" } ], "testExecutions": [ { "id": 22, "testPlanId": "string", "testStepId": 22, "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": null, "duration": 0, "position": 1, "batchId": 1, "jiraIssueId": "14", "jiraIssueUrl": "https://domain.atlassian.net/browse/DNTPPJI-189", "created_at": "2023-03-16T12:23:30.000Z", "updated_at": "2023-03-16T12:23:30.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" } ] } ] } ], "first": true, "last": true, "totalPages": 1, "totalElements": 1, "numberOfElements": 1, "limit": 10, "pageNumber": 1 }

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

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

406 Insufficient permision json { "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": "/issues/junofilter/dashboard" }

500 Unknown error json { "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": "/issues/junofilter/dashboard" }