Subtract estimation after spliting

Issue #860 resolved
Haris Becic created an issue

Hi,

we have the possibility to clone/split the issue and i want to ask you is it possible to subtract the estimation from the cloned/splited issue? For example:

Issue 1: 50 hours and we clone this issue and on the create screen we say that the cloned issue is 25 hours estimated. They are connected over issue linking. Is it possible that the first issue is then estimated with 25 hours?

Thanks Regards, Haris

Comments (5)

  1. Fidel Castro Armario repo owner

    Hi @Hare29,

    When I try to clone an issue I don't get a create issue screen, but simply I get a new issue with the same field values as the cloned issue. How are you cloning your issues? Are you using a third-party add-on?

  2. Haris Becic reporter

    Yes we are using clone++ for cloning because it provides in the "More" menu the button e.g "Create related Defect" and when you clone the issue you get another create screen. I think it should be possible with JIRA Toolbox Workflow plugin to subtract the estimations from linked issue or?

    Thanks Regards, Haris

  3. Haris Becic reporter

    Hi @fcarmario ,

    would this be possible? It is really important for us to have this feature.

    Thanks Regards, Haris

  4. Fidel Castro Armario repo owner

    Hi @Hare29,

    I have installed Clone ++ and implemented with success the following solution:

    1) Create a reflexive transition called "Adjust Estimation" in first status of your workflow (typically Open). This transition will have Open as origin and destination status.

    2) Add condition "Transition is triggered by JIRA Workflow Toolbox post-function" to transition "Adjust Estimation". This way we are hiding it to human users, leaving it only available to JWT post-functions.

    3) Add post-function "Write field on linked issues or subtasks" to transition "Adjust Estimation" with the following configuration:

    Captura de pantalla 2017-10-24 a las 11.17.48.png

    Formula for setting Remaining estimate (minutes) is:

    max(^{00024} - {00024}, 0)
    

    where {00024} is field code for Remaining estimate (minutes).

    4) Add "Copy a parsed text to a field" post-function in Create Issue transition with the following configuration:

    Captura de pantalla 2017-10-24 a las 11.20.51.png

  5. Log in to comment