Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Jira/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public function getRoleDetails($projectKey, $roleId)
* Returns the meta data for creating issues. This includes the available projects, issue types
* and fields, including field types and whether or not those fields are required.
* Projects will not be returned if the user does not have permission to create issues in that project.
* Fields will only be returned if "projects.issuetypes.fields" is added as expand parameter.
*
* @param $projectIds array Combined with the projectKeys param, lists the projects with which to filter the results.
* If absent, all projects are returned. Specifiying a project that does not exist (or that
Expand All @@ -199,17 +200,19 @@ public function getRoleDetails($projectKey, $roleId)
* If null, all issue types are returned. This parameter can be specified multiple times,
* but is NOT interpreted as a comma-separated list. Specifiying an issue type that does
* not exist is not an error.
* @param $expand array Optional list of entities to expand in the response.
* @return string
*/
public function getCreateMeta(
array $projectIds = null,
array $projectKeys = null,
array $issuetypeIds = null,
array $issuetypeNames = null
array $issuetypeNames = null,
array $expand = null
) {
// Create comma seperated query parameters for the supplied filters
$data = array();
foreach (array("projectIds", "projectKeys", "issuetypeIds", "issuetypeNames") as $parameterName)
foreach (array("projectIds", "projectKeys", "issuetypeIds", "issuetypeNames", "expand") as $parameterName)
if (${$parameterName} !== null) {
$data[$parameterName] = implode(",", ${$parameterName});
}
Expand Down