Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Updating an issues custom field #273

Answered by Art4
jcatrysse asked this question in Q&A
Discussion options

Hello,

Could someone post a small example of how to update a custom field for an issue?

Thank you.

You must be logged in to vote

You can find an example in the docs: https://github.com/kbsali/php-redmine-api/blob/v2.x/docs/usage.md

$client->getApi('issue')->update($issueId, [
 'custom_fields' => [
 [
 'id' => 2,
 'name' => 'Issuer',
 'value' => $issuer,
 ],
 [
 'id' => 5,
 'name' => 'Phone',
 'value' => $phone,
 ],
 [
 'id' => '8',
 'name' => 'Email',
 'value' => $email,
 ],
 ],
]);

Replies: 1 comment 1 reply

Comment options

You can find an example in the docs: https://github.com/kbsali/php-redmine-api/blob/v2.x/docs/usage.md

$client->getApi('issue')->update($issueId, [
 'custom_fields' => [
 [
 'id' => 2,
 'name' => 'Issuer',
 'value' => $issuer,
 ],
 [
 'id' => 5,
 'name' => 'Phone',
 'value' => $phone,
 ],
 [
 'id' => '8',
 'name' => 'Email',
 'value' => $email,
 ],
 ],
]);
You must be logged in to vote
1 reply
Comment options

Thank you!

Answer selected by Art4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /