@pnp/cli-microsoft365
Version:
Manage Microsoft 365 and SharePoint Framework projects on any platform
24 lines • 733 B
JavaScript
export const taskPriority = {
/** Priority labels used in Planner. */
priorityValues: ["Urgent", "Important", "Medium", "Low"],
/**
* Transform priority label to the corresponding number value.
* @param priority Priority label or number.
*/
getPriorityValue(priority) {
if (typeof priority === "string") {
switch (priority.toLowerCase()) {
case "urgent":
return 1;
case "important":
return 3;
case "medium":
return 5;
case "low":
return 9;
}
}
return priority;
}
};
//# sourceMappingURL=taskPriority.js.map