How to get all the issues associated with a project in Custom UI?

Folks,

I’ve been struggling to find all issues associated with a project in Forge in Custom UI.

I see that we can use getContext in the issuePanel or other issue level modules to get details about the issue; But I couldn’t find how to find all the issues at project level?

Also, from the globalPage I can get all projects in Custom UI; But how to get all the issues associated with those projects?

Thank you for your time.

Hi @AbishekMuthian,

You may use JQL search to find all the issues for a particular project:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-post

Thanks,
Vitalii

3 Likes

I think you can use the globalPage module.

I think the endpoint you are looking for is GET /rest/agile/1.0/board/{boardId}/issue

See Jira Agile Server 9.5.0 REST API reference

Hi Vitali,

Thank you, But when I try that I don’t receive the issues but just the project details -

INFO    02:49:07.922  8ae7d7655d9668b4  data {
  "self": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/project/search?jql=project%3DAT&maxResults=50&startAt=0",
  "maxResults": 50,
  "startAt": 0,
  "total": 2,
  "isLast": true,
  "values": [
    {
      "expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
      "self": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/project/10001",
      "id": "10001",
      "key": "AP2",
      "name": "Abishek Project -2",
      "avatarUrls": {
        "48x48": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400",
        "24x24": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=small",
        "16x16": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=xsmall",
        "32x32": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=medium"
      },
      "projectTypeKey": "software",
      "simplified": false,
      "style": "classic",
      "isPrivate": false,
      "properties": {}
    },
    {
      "expand": "description,lead,issueTypes,url,projectKeys,permissions,insight",
      "self": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/project/10000",
      "id": "10000",
      "key": "AT",
      "name": "Abishek's Project -1",
      "avatarUrls": {
        "48x48": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400",
        "24x24": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=small",
        "16x16": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=xsmall",
        "32x32": "https://api.atlassian.com/ex/jira/b16ba1a8-a0c1-4c78-9df8-c22e4c845073/rest/api/3/universal_avatar/view/type/project/avatar/10400?size=medium"
      },
      "projectTypeKey": "software",
      "simplified": true,
      "style": "next-gen",
      "isPrivate": false,
      "properties": {},
      "entityId": "8d040a3c-8c6a-4d4a-9ce0-788eb4b6d27c",
      "uuid": "8d040a3c-8c6a-4d4a-9ce0-788eb4b6d27c"
    }
  ]
}

I see that the request seems to be in proper format, Not sure what I am doing wrong.

I got the issue, I had /project in the URL :man_facepalming:t5: .

Thank you all.