Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Exalate Issue with Status not Linking

 
1
0
-1

Instance one
Incoming Sync

def statusMapping = [
"Stakeholder Review" : "Ready For Review"
]
def defaultStatus = "Planning"
def statusName = statusMapping[replica.status?.name] ?: defaultStatus


Instance 2

Incoming Sync


def statusMapping = [
"Ready For Review" : "Stakeholder Review"
]
def defaultStatus = "To Do"
def statusName = statusMapping[replica.status?.name] ?: defaultStatus


Name of Status found on both instances
Copy pasted from Workflow →  Workflow Step → Workflow Step Properties

Instance 1
Stakeholder Review


Instance 2
Ready For Review


Whenever I change the status to 'Stakeholder Review' →  'To Do' status instead of 'Ready For Review' and vice versa on the other instance when pointing to 'Ready For Review'' → 'Planning' 

Where am I going wrong here?

  1. André Leroy-Beaulieu Castro

    Hi Vinh,


    Thanks for raising this community questions!


    Are you using the line:


    issue.setStatus(statusName)


    After the blocks of code you sent?


    are there steps between the initial statuses you are on and the desired status (Stakeholder Review, or Ready For Review, depending on the instance) in the respective workflows?


    Thanks,


    André

  2. V. Hong

    I'm not using said line

    issue.setStatus(statusName)


    For initial status for both issues it is In Progress

    Both are able to transition to Stakeholder Review and Ready For Review. 

  3. André Leroy-Beaulieu Castro

    Hi Vinh,


    So can I get screenshots of the full scripts for Incoming Sync on both sides? 


    Thanks,


    André

  4. André Leroy-Beaulieu Castro

    Could you try replacing line 56 and 68 respectively with:


    issue.setStatus(statusName)


    Thanks,


    André

  5. V. Hong

    I have swapped out the lines and tried transitioning the status from 'In Progress' → 'Stakeholder Review' but on the opposing instance it just transitions back to 'To Do'

CommentAdd your comment...

2 answers

  1.  
    2
    1
    0

    Hi Vinh,


    So the default status is "To Do", and you are receiving the remote status "Stakeholder Review", this needs to be in the left side of the mapping to evaluate to a status in the right. I think you have your full statusMapping backwards.


    Thanks,


    André

      CommentAdd your comment...
    1.  
      1
      0
      -1

      So it was the case of statusMapping being backwards. I will note the code was generated back when the mapping was reverse and not sure when it changed.

        CommentAdd your comment...