Correctly using the "Set a field as a function of other fields" post function

Issue #778 resolved
Antônio Duarte created an issue

Hi, Please, help me with this problem: There is an issue with a Calculated Field. This is a numeric field that holds the product of two other numeric fields that exist in this same issue. Its name is "Complexity Grade". Then, I create another issue (of another type) and I link this recently created issue to the issue above with a specific issue link option reserved for this situation (for example, "relates to"). I want to set the Priority field of this new issue according to the value we have in the "Complexity Grade" of the "main" issue, in this manner: if "Complexity Grade" < 10, set Priority to Low; if 11 < "Complexity Grade" < 20, set Priority to Medium; if "Complexity Grade" > 21, set Priority to High; To do this, I just tried your "Set a field as a function of other fields" post function in the transition from the "Open" to "In Progress" of the "secondary" issue, trying to set its Priority field according the rules above, but I'm not successful. Please, guide me on how to get this behavior. And if the "Set a field as a function of other fields" post function is not the appropriate post function to be used, please, say what is my best solution. Thanks in advance. Antonio.

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi @acelsoddbr,

    You can do it using 2 post-functions in transition from Open to In Progress of secondary issue:

    1. Use "Read fields from linked issues or subtask" with the following configuration: Captura de pantalla 2017-09-01 a las 16.19.09.png
    2. Insert post-function "Set a field as a function of other fields" with the following configuration: Captura de pantalla 2017-09-01 a las 16.14.50.png Setting rules are:
    [{00058} <= 10]Low
    [{00058} <= 20]Medium
    [true]High
    

    where {00058} is field field code for "Ephemeral number 1".

    Once configured, transition from Open to In Progress of secondary issue will look like this:

    Captura de pantalla 2017-09-01 a las 16.40.42.png

  2. Antônio Duarte reporter

    Hi, Fidel, Only now I'm reading your reply, because I didn't receive any notification e-mail that your reply was already done! Thanks for your guidelines! Antonio.

  3. Log in to comment