Task #2988
closedCopy currently assigned roles when new contract in the same position is created
100%
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.
Updated by Tomáš Doischer about 3 years ago
- Status changed from In Progress to Needs feedback
- % Done changed from 0 to 80
Implemented here: https://github.com/bcvsolutions/czechidm-extras/commit/fd4155dbbeb1d98d1bb719d273f564ae67ede69d
Documentation here: https://wiki.czechidm.com/devel/documentation/modules_extras/copy_roles_to_new_contract
No new issues on Sonar, 87% coverage.
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?
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.
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.
Updated by Peter Štrunc about 3 years ago
- Status changed from Resolved to Closed