Skip to content

Commit 0962b2c

Browse files
committed
Add new Issue data meta data calls
1 parent 80b6607 commit 0962b2c

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

src/Requests/Issue/IssueRequest.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,33 @@ public function bulkCreate()
4545
}
4646

4747
/**
48-
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-issue-createmeta-get
48+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-get
4949
* @throws \Exception
50+
* @deprecated
5051
*/
5152
public function getCreateMetadata(array $parameters = [])
5253
{
5354
return $this->execute('get', "issue/createmeta", $parameters);
5455
}
5556

57+
/**
58+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-projectidorkey-issuetypes-get
59+
* @throws \Exception
60+
*/
61+
public function getCreateMetadataProjectIssueTypes(string $projectIdOrKey, array $parameters = [])
62+
{
63+
return $this->execute('get', "issue/createmeta/{$projectIdOrKey}/issuetypes", $parameters);
64+
}
65+
66+
/**
67+
* @see https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-projectidorkey-issuetypes-issuetypeid-get
68+
* @throws \Exception
69+
*/
70+
public function getCreateMetadataProjectIssueType(string $projectIdOrKey, string $issueTypeId, array $parameters = [])
71+
{
72+
return $this->execute('get', "issue/createmeta/{$projectIdOrKey}/issuetype/{$issueTypeId}", $parameters);
73+
}
74+
5675
/**
5776
* Returns a full representation of the issue for the given issue key.
5877
*

0 commit comments

Comments
 (0)