-
Notifications
You must be signed in to change notification settings - Fork 180
-
Hello,
Could someone post a small example of how to update a custom field for an issue?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
Art4
Mar 1, 2022
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
-
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, ], ], ]);
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
1 reply
-
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions
Answer selected by
Art4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment