Skip to end of banner
Go to start of banner

getParentIssue

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description

Get the Parent issue for a given issue.

Parameters

Returns

Returns a Promise to the value; you must use await.

Returns an issue object.

Examples

Return the Affects versions and Fix versions of the Parent issue.

const parentIssue = await api.issue.getParentIssue(issue)
const parentVers = await api.issue.getFields(parentIssue,["versions","fixVersions"])
return json.stringify(parentVers)

Returns:

 {
  "versions":[],
  "fixVersions":
  [
    {
      "self":"https://api.atlassian.com/ex/jira/<id>/rest/api/2/version/10000",
      "id":"10000",
      "description":"",
      "name":"2.1",
      "archived":false,
      "released":false
    }
  ]
}

You are viewing the documentation for Jira Cloud.

On this page

  • No labels