-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create/Update group with custom_fields #263
Comments
Hey, this feature has no details in Redmine documentation: http://www.redmine.org/projects/redmine/wiki/Rest_Groups#PUT If someone can figure out how the API works we would be happy about more information or a PR. |
It's work same as in User: will create group with custom field of id 2, value - "testvalue" |
@hartois if it is similar to the User API, how about proposing a pull request with the changes you are after? :) |
@hartois You can start with extending the class GroupApi extends \Redmine\Api\Group
{
public function update($id, array $params = [])
{
// Build your implmeentation here
return $this->put('/groups/'.$id.'.xml', $body);
}
}
// try using it
$groupApi = new GroupApi($redmineClient);
$return = $groupApi->update(12, []); |
Creating a group with custom_fields is already possible: $client->getApi('group')->create([
'name' => 'asdf',
'user_ids' => [1, 2],
'custom_fields' => [
[
'id' => 123,
'name' => 'cf_name',
'value' => 'cf_value',
],
],
]); I will update the docs and working at the feature to updating groups and custom_fields. |
Hello, please add feature for setting custom_fields in Group on create/update such as in User
The text was updated successfully, but these errors were encountered: