Confluence has been updated to ver 6.15.9. In case of any troubles, please contact infra team.

How do I sync statusCategory?

 
1
0
-1
Is there any way my partner and I can sync the issue statusCategory?
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hey Vyacheslav,


      Can you give an example on how the synchronization needs to look like please?

      1. Viacheslav

        Sure thing. I need a functionality similar to this:

        if (replica.statusCategory == "Done") {
        workflowHelper.transition(issue, "Resolve this issue")

        }

      2. Roman

        Can you try 

        if (replica.status.category.name == "Done") {
        workflowHelper.transition(issue, "Resolve this issue")

        }

      3. Viacheslav

        I'm not sure about 'status.category', in Jira's JQL it is 'statusCatefory'. Anyways, I used another approach as follows:

        if (replica.status.name == "Escalated" && issue.status.name == "Waiting for customer") {
        workflowHelper.transition(issue, "Respond to support")
        } else if (replica.status.name == "Canceled") {
        workflowHelper.transition(issue, "Reject")
        } else if (replica.status.name == "Closed" || replica.status.name == "Resolved") {
        workflowHelper.transition(issue, "Resolve this issue")
        }

      CommentAdd your comment...