Status mapping

Originally asked by Support on 21 September 2022 (original question)


I need to map some statuses from incoming connection, but I don’t want any actions in the others status, I need the code to ignore the unwanted transition status to leave the original status in the destination issue.

Is It possible to do with the script?

Thank you in advantage for reply


Comments:

Support commented on 23 September 2022

Hi,

Can you please let us know which instances are involved?

Kind regards,

Harold Cruz

Francesco Doricchi commented on 23 September 2022

The sync is between my data center environment and a cloud instance of a customer. My plugin version is 5.3.2-j8 and my Jira version is 8.4.2.

thanks for support

best regards

Francesco

Daniel Carvajal commented on 26 September 2022

Hi Francesco Doricchi

Information about general status synchronization can be found here: https://docs.idalko.com/exalate/x/14YrAQ

What you can do to ignore such transitions is to map the a status to the same status as the one already assigned so no transition is done in between, for example:

def statusMap = [
// ["remote status name": "local status name"]
"In Progress": "In Action",
"Pending": "In Action",
"Done": "Resolved"
]

Using this on the incoming sync will make that if the status received is either “In Progress” or “Pending” the status on the receiving side will remain “In Action” for both statuses.

Give it a try and let us know if it works.

Cheers,

Daniel

Francesco Doricchi commented on 13 October 2022

I tried and it seems works

thank you