Skip to content

Commit

Permalink
Issues updating has been added
Browse files Browse the repository at this point in the history
  • Loading branch information
doishub committed Feb 21, 2023
1 parent 873af8f commit 2494785
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/issues/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ $issue = $youtrack
```
Returns the data of the newly created issue. The return fields can also be defined here via `->fields()`.

##### `update($issueId, $parameter)`
Updates an issue base on the Issue id.

##### `customFields($issueId)`
Returns all custom fields based on the issue ID.

Expand Down
4 changes: 2 additions & 2 deletions src/Api/Issue.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public function create(array $parameter): array
/**
* Update an existing issue.
*/
public function update(): array
public function update(string $issueId, array $parameter): array
{
// ToDo: https://www.jetbrains.com/help/youtrack/devportal/api-usecase-update-text-field-value.html
return $this->post("issues/$issueId", $parameter);
}

/**
Expand Down

0 comments on commit 2494785

Please sign in to comment.