REST API - Configuring One Time Rule
Introduction
It is possible to update the configuring OOO one-time rule for the users via REST API
List of Attributes
Data Type | Attribute Name | Default Value | Remarks |
|---|---|---|---|
String | projectIdString | "-1" | "-1" will be all other project If not, it will be the projectId of project |
String | covererId |
| The coverer’s username if reassignMode is set to "coverer" Set to "-" for do not re-assign issue |
String | covererAvatar |
| The small avatar img of coverer which is used to populate in one time rule table |
String | covererDisplayName |
| The coverer’s full name which is used to populate in one time rule table |
String | standInId |
| The stand-in’s username if standInAction is set to “replace” or “add” |
String | standInAvatar |
| The small avatar img of the stand-in which is used to populate in one time rule table |
String | standInDisplayName |
| The stand-in’s full name which is used to populate in one time rule table |
String | standInAction |
| Either
If “replace” or “add” is given, a standInId must be given as well. |
String | projectAvatar |
| The small avatar img of the project the rule applies to, or blank if the rule applies to all other projects |
String | projectName |
| The name of the project the rule applies to, or “All other projects” |
String | projectKey |
| The key of the project the rule applies to, or blank if the rule applies to all other projects |
String | reassignMode |
| Can use "reassign", for re-assigning issue Can use "unassign", for unassigning issue ( the option is only available if JIRA allow unassign issue) Can use "same", for do not re-assign issue |
String | oneTimeMessage |
| Message to be added into comment should the user is OOO |
String | startDateString |
| String of the out of office start date format ("yyyy-MM-dd HH:mm") |
String | endDateString |
| String of the out of office end date format ("yyyy-MM-dd HH:mm") |
String | creatorAvatar |
| The small avatar img of rule creator which is used to populate in one time rule table |
String | creatorDisplayName |
| The creator full name which is used to populate in one time rule table |
String | assigneeId |
| The ooo user's username |
String | assigneeAvatar |
| The ooo user's avatar |
String | assigneeDisplayName |
| The ooo user's full name |
int | oneTimeId | 0 | The id of the one time rule for update and delete rule |
boolean | byAdmin | false | if the rule is configured by admin |
boolean | byTeam | false | if the rule is configured by team |
boolean | isSdProject | false | If the project involved in the rule is a service desk project, used to populate the one time rule table |
REST APIs
