How to copy updated date to a customfield date when a checkbox customfield is checked.

Issue #161 resolved
Raju Adluru created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi Raj,

    You should use post-function "Set field as a function of other fields" with the following configuration:

    conf-1.png

    Note that:

    • {00011} is code for numeric value of "Date and time of last update"

    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:

    1. Remove the checkbox custom field from edit screen.
    2. Add the checkbox custom field to transition screens, and add the formerly described post-function to all the transitions were checkbox custom field can be updated.
    3. In case you have the checkbox custom field also in create screen, you should add the post-function to transition "Create Issue". In that case, insert the post-function after transition "Creates the issue originally".

    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

  2. Raju Adluru 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

  3. Fidel Castro Armario repo owner

    Raj, I close the issue. Please, reopen it if you have any problem with the solution provided.

  4. Log in to comment