How to do it...

To create a server action and use it from the More menu, follow these steps:

  1. On the Settings top menu, select the Technical|Actions|Server Actions menu item, and click on the Create button at the top of the record list, as shown in the following screenshot:
  1. Fill out the server action form with these values:
    • Action Name: Set as Priority
    • Base Model: Task
    • Action To Do: Update the Record
  1. In the server action, under the Data to write tab, add the following lines:
    • As the first value, we will enter the following parameters:
      • Field: Deadline
      • Evaluation Type: Python expression
      • Value: datetime.date.today() + datetime.timedelta(days=3)
    • As the second value, we will enter the following parameters:
      • Field: Priority
      • Evaluation Type: Value
      • Value: 1

The following screenshot shows the entered values:

  1. Save the server action and click on the Create contextual action button in the top left to make it available in the project task's More button.
  1. To try it out, go to the Project top menu, select the Search|Tasks menu item, and open a random task. By clicking on the More button, we should see the Set as Priority option as shown in the following image. Selecting this will star the task and change the deadline date to three days from now:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset