setUserColumns method
Sets the default issue table columns for the user. If an account ID is not passed, the calling user's default columns are set. If no column details are sent, then all default columns are removed.
The parameters for this resource are expressed as HTML form data. For example, in curl:
curl -X PUT -d columns=summary -d columns=description https://your-domain.atlassian.net/rest/api/3/user/columns?accountId=5b10ac8d82e05b22cc7d4ef5'
Permissions required:
- Administer Jira global permission, to set the columns on any user.
- Permission to access Jira, to set the calling user's columns.
Implementation
Future<dynamic> setUserColumns(
{String? accountId, required List<String> body}) async {
return await _client.send(
'put',
'rest/api/3/user/columns',
queryParameters: {
if (accountId != null) 'accountId': accountId,
},
body: body,
);
}