Status Mapping with id

Originally asked by Katja Brand on 04 May 2022 (original question)


Hello,

our sync is working with status mapping via status name. But often there are errors, because the other side is changing a status name. It is possible to change the mapping to status id’s?

Who can we do this?

Thanks,

Katja


Answer by Katja Brand on 05 May 2022

Hi Jose,

thanks - I have check the example you mention and that is what we have yet.

I would like to have something like that:

def statusMapping = [id_10345:id_12678, id_10100:id_5]
def remoteStatusId = replica.Status.value
issue.setStatus(statusMapping[remoteStatusId] ?: remoteStatusId)

But I am not sure about the syntax - could you help?

I will check the environment and give you feedback later on.

Best Katja


Comments:

Mathieu Lepoutre commented on 30 October 2023

Hi Katja

The syntax provided is not recommended since the ‘id_10345’, ‘id_12678’, ‘id_10100’, and ‘id_5’ are considered as strings, not as status IDs.

For more details, please refer to the Exalate documentation on how to sync statuses:
JC: https://docs.exalate.com/docs/how-to-sync-status-on-jira-cloud
JOP: https://docs.exalate.com/docs/how-to-sync-statuses-in-jira-on-premise

Thank you.

Kind regards,
Mathieu Lepoutre

Answer by Jose Pablo Alpizar Hidalgo on 05 May 2022

Please check the example in the following documentation page:
https://docs.idalko.com/exalate/x/ZA3HAw
Can please provide more details about the instances you are using and what the error message displayed?