Class ActionItemApi
Object
ActionItemApi
Utility class to work with Action Items in Groovy code
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionActionItemApi
(FormulaEngineContext ctx, ActionItemManager actionItemManager) -
Method Summary
Modifier and TypeMethodDescriptionReturns configured limits for newly created action items.Initiates a builder object to create a new Action Item (AI).Initiates an operation with an existing Action Item (specified by ID).
-
Constructor Details
-
ActionItemApi
public ActionItemApi(FormulaEngineContext ctx, ActionItemManager actionItemManager)
-
-
Method Details
-
newActionItem
Initiates a builder object to create a new Action Item (AI). The operation is finished with theActionItemApi.ActionItemBuilder.create()
method.Example:
def actionItem = api.actionItemApi().newActionItem() .setSummary("A brief title of the Action Item") .setType("__DEFAULT__") .setAssignedTo(userId) .create()
- Returns:
- a new instance of ActionItemBuilder
-
withId
Initiates an operation with an existing Action Item (specified by ID). Supported operations areupdate
anddelete
.Example – updates the existing Action Item:
def actionItemId = 123 def actionItem = api.actionItemApi().withId(actionItemId) .setSummary("An updated summary.") .doUpdate()
- Parameters:
actionItemId
- The id of an existing Action Item- Returns:
- a new instance of ActionItemBuilder
-
getNewRecordsMaxLimits
Returns configured limits for newly created action items.- Returns:
- Map containing two keys:
- limit: number of newly created action items within a given time period
- timePeriod: timeframe in seconds within the limit is enforced. A counter of newly created action items is reset after the period elapses.
-