Project

General

Profile

Actions

Task #2988

closed

Copy currently assigned roles when new contract in the same position is created

Added by Tomáš Doischer about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Tomáš Doischer
Target version:
Start date:
11/01/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

The use-case is simple: in some cases, instead of extending the validity of the current contract, new contract is created in the same position. This means that the user loses all manually assigned roles.

The goal of this ticket is to create a processor which will activate when a new contract is created (or updated) and is valid in the future. Then, if the position is the same as for the main currently valid contract, the currently assigned roles are copied to the new contract. The contract validation can be turned off in configuration.

The processor will be disabled by default.

Actions #2

Updated by Tomáš Doischer about 3 years ago

  • Status changed from In Progress to Needs feedback
  • % Done changed from 0 to 80
Actions #3

Updated by Tomáš Doischer about 3 years ago

  • Assignee changed from Tomáš Doischer to Roman Kučera

@kucerar, can you give me feedback when you have a second?

Actions #4

Updated by Roman Kučera about 3 years ago

Code LGTM
I need to test it

Actions #5

Updated by Roman Kučera about 3 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Roman Kučera to Tomáš Doischer

I tested it and works nicely.

Actions #6

Updated by Tomáš Doischer about 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 80 to 100

Thank you, merged to develop.

Actions #7

Updated by Peter Štrunc about 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF