Skip to content

Commit 8675c0d

Browse files
authored
Merge pull request #286 from JoseP-UR/master
setReporterAccountId (conforms to new API rules)
2 parents c05eee2 + 893193c commit 8675c0d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Issue/IssueField.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,24 @@ public function setReporterName($name)
229229
return $this;
230230
}
231231

232+
/**
233+
* set issue reporter accountId.
234+
*
235+
* @param string $accountId
236+
*
237+
* @return $this
238+
*/
239+
public function setReporterAccountId($accountId)
240+
{
241+
if (is_null($this->reporter)) {
242+
$this->reporter = new Reporter();
243+
}
244+
245+
$this->reporter->accountId = $accountId;
246+
247+
return $this;
248+
}
249+
232250
/**
233251
* set issue assignee name.
234252
*

0 commit comments

Comments
 (0)