How do I create a dynamic work attribute in Tempo Timesheets for
Server
Data Center
Answer
Work attributes can be added as additional fields to the worklog dialog screen within Tempo Timesheets (required permission: Tempo Administrator). Work attributes can be added within the Tempo report engine and are included in the Excel output reports as well. Dynamic work attributes are special in that you define the list items in an external service that connects to Tempo Timesheets. Additionally Tempo can pass several parameters from the worklog dialog screen (Jira issue key, the user key and the Tempo account key) to the script in order to make the available work attributes dependent on the selected value within the worklog dialog screen. In the example below, we show you how you can create a dynamic work attribute that will pull all Tempo Teams the user (who logs the time) is a member of as possible options to select. Follow the steps below to set up a dynamic work attribute.
First, create the worklog attribute field from the Tempo Administration section. Select the type "Dynamic Dropdown":
Image Removed
Image Added
Click the "Configure API URL (for dropdown values)" and enter the path to your script. Add the user parameter ("/{author}") to the script url to pass the user key to it.