Skip to content

Commit 9c5a47f

Browse files
author
Andrejs Stepanovs
committed
added deleteWorkflow method
1 parent bc42620 commit 9c5a47f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Issue/IssueService.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,28 @@ public function editWorklog($issueIdOrKey, $worklog, $worklogId)
699699
return $ret_worklog;
700700
}
701701

702+
/**
703+
* delete worklog.
704+
*
705+
* @param string|int $issueIdOrKey
706+
* @param string|int $worklogId
707+
*
708+
* @throws JiraException
709+
*
710+
* @return bool
711+
*/
712+
public function deleteWorklog($issueIdOrKey, $worklogId)
713+
{
714+
$this->log->info("deleteWorklog=\n");
715+
716+
$url = $this->uri."/$issueIdOrKey/worklog/$worklogId";
717+
$type = 'DELETE';
718+
719+
$ret = $this->exec($url, null, $type);
720+
721+
return (bool)$ret;
722+
}
723+
702724
/**
703725
* Get all priorities.
704726
*

0 commit comments

Comments
 (0)