How to copy updated date to a customfield date when a checkbox customfield is checked.
Issue #161
resolved
JIRA Version : 6.3.12 Workflow toolbox : v2.1.33
Hi Fidel I need help on this function. i have a custom field check box, when it is checked(value=yes), date should be copied to custom date field.
Can we do above as listener or post function, if it is a post function, where should i keep this function. thanks for your help. Raj
Comments (3)
-
repo owner -
reporter Fidel Thank you so much, i will implement this and convince the user to restrict the check box in transition screen.
Thanks & regards Raju Adluru
-
repo owner - changed status to resolved
Raj, I close the issue. Please, reopen it if you have any problem with the solution provided.
- Log in to comment
Hi Raj,
You should use post-function "Set field as a function of other fields" with the following configuration:
Note that:
Now we have to force checkbox custom field to be updated only in transition screens, and never in edit screen. To do it you should:
You can also add reflexive transitions (transitions with same source and destination status) to the statuses where you want to allow field to be updated. These transitions might be called "Edit issue", and will have associated a screen containing all the fields you want to allow to be edited in the status. These transitions will also have the formerly described post-function.
Best regards,
Fidel