Is there any way to send the "issue key" to my backend code from issue-right-panel

I want to get some issue details in the issue viewer in my cloud instance for that i want issue key but i am not able to get it.Is there any way to get the issue key from issue-right-panel and i can send it to the back-end.

atlaasin-connect.json file

 "modules": {
    "webPanels": [
      {
        "key": "example-issue-right-panel",
        "location": "atl.jira.view.issue.right.context",
        "name": {
          "value": "Issue Info "
        },
        "url": "/issueInfo"
      }
    ]
}

index.js routes file

 //get index page api
  app.get("/issueInfo", addon.authenticate(), (req, res) => {
    res.render("issue_info", {
      title: "Issue Information"
    });
  });

PFA. I am not able to find the issue key in request parameter.

Hey @Sowmya try this:

"webPanels": [
      {
        "key": "example-issue-right-panel",
        "location": "atl.jira.view.issue.right.context",
        "name": {
          "value": "Issue Info "
        },
        "url": "/issueInfo?issueKey=${issue.key}"
      }
    ]

Here’s some more info on context parameters: https://developer.atlassian.com/cloud/jira/platform/context-parameters/

6 Likes

@biro Thanks for your answer. I am able to get the issue key.