Task Status Change based on the multiple linked issues

Issue #641 resolved
Rjve Nautiyal created an issue

Hi,

Below is my current scenario- Change Request is linked with Dev task and QA task. QA Task is linked to Test cases. Test Cases are linked to Bug.

QA Task will be linked to nearly 100 or 50 test cases. My current requirement is - There will be around 10 test cases which will be blocked status There will be around 20 test cases which will be in passed status There will be around 30 test cases which will be in failed status.

In the above scenario, the major test cases that is 30 is in failed status. So, I wanted my QA task status should change to Fail. So, in the similar manner, which ever status count number is more the QA task status should change.

Do we have any option wherein I can give the probability % in workflow which can help me to get the QA task status based on test cases.

Thanks & Regards, Rajeev Nautiyal

Comments (12)

  1. Fidel Castro Armario repo owner

    Hi @rjvenautiyal,

    It can be done, but there are some points that need to be clarified:

    Your 50 Test Cases are always in a certain status (I don't know the workflow you are using). At which moment do you want QA Task to be transitioned depending on Test Cases status? Do you want it to be transitioned when all the linked Test Cases are in any of the following statuses: Blocked, Passes and Failed*?

    Please, attach screenshots or/and XML exports of your QA Task and Test Case workflows?

    I don't understand your second question about probability %. Can you, please, give some more details about it?

  2. Rjve Nautiyal reporter

    Hi, I have attached the workflow for QA Task and Test workflow.

    Test workflow have status Unexecuted, WIP, Pass, Fail, Clarification required, on-hold, blocked.

    QA task should transition depending on any test cases status. For instance- Linked Test cases are in Pass status and few test cases are in Fail status - QA task should be Q-In-Progress Linked Test cases have the status- Pass, Fail, Block and WIP- QA task should be in Q-In-Progress Any of the linked test cases are on Clarification required or few of the test cases are passed or fail- QA task should be in Clarification required.

    Also, instead of giving "or" condition in validation of linked issues. Do we have any option for "And" Condition or "Nor" Condition. I have attached is the screenshot for the reference.

    Thanks & Regards, Rajeev Nautiyal

  3. Fidel Castro Armario repo owner

    Hi @rjvenautiyal,

    I don't understand your second question about probability %. Can you, please, give some more details about it?

  4. Rjve Nautiyal reporter

    Hi Fidel,

    You can ignore my second question, that requirement is cancelled.

    Thanks & Regards, Rajeev Nautiyal

  5. Fidel Castro Armario repo owner

    Hi @rjvenautiyal,

    Which transition of QA Task workflow has the validation you attached?

  6. Rjve Nautiyal reporter

    Hi Fidel,

    Basically in the screenshot I would like to highlight- Linked Issues - have "OR" condition between WIP, unexecuted.

    I am looking if we can have an option for "AND" condition. For that purpose I have attached a screenshot and I have not saved the validation.

    Thanks & Regards, Rajeev Nautiyal

  7. Fidel Castro Armario repo owner

    Hi @rjvenautiyal,

    Sorry, but I don't understand what you intend to do. Issues can only be in one status at the same time, so an AND condition is not applicable here.

    Please, tell me what do you intend to do with the validation, and in which transition of which workflow do you intend to use it.

    Tell me also the following information:

    • Exact name of QA Task and Test case issue types.
    • Exact name of the issue link type you use to link Test cases with QA Tasks.
  8. Rjve Nautiyal reporter

    Hi Fidel,

    When I create a QA Task in JIRA it will be in “New” Status. Now I link my test cases with the help of linking issues “Testing_Task To Test”. When Test cases are created it will be in “Unexecuted” status. There are around 4 test cases linked to QA Task.

    1st Scenario- When I execute 1st test cases and change the status to “Pass” and 2nd test cases change status to “Fail” and 3rd test cases change status to “WIP” and 4th test cases change status to “Blocked”. In this scenario, QA task should change to “On-hold” as one test case is blocked.

    2nd Scenario- I create a new QA task and link nearly 5 test cases to QA task. 1st test cases status is “Unexecuted” and 2nd test cases change status to “Fail” and 3rd test cases change status to “WIP” and 4th test cases change status to “Blocked” and 5th test cases change status to “Pass”. In this scenario, QA task should change to “Q-In-Progress” as one of the test cases is still to “execute”.

    So, basically I am looking for a trigger which can read the linked test cases status and then the QA task status get changed.

    Thanks & Regards, Rajeev Nautiyal

  9. Fidel Castro Armario repo owner

    Hi @rjvenautiyal,

    It can be done using post-function "Write field on issues returned by JQL Query or Issue List" in all the transitions of Test Case workflow with a configuration depending on the transition where it's inserted.

    We use the post-function for writing into field Issue status of QA Task the name of the desired new status. We use the following issue list expression for selecting the QA Task: linkedIssues("Test to Testing_Task").

    The solution is complex and requires a good effort, but your description of the requirements is incomplete, based in only 2 examples. I need a complete and consistent description of all the possible cases in order to give you a detailed description of the solution.

  10. Rjve Nautiyal reporter

    Hi Fidel, Many thanks for the help and support. We can close this ticket for time being, in case if I need any help will raise a new ticket.

    Thanks & Regards, Raeev Nautiyal

  11. Log in to comment