Jira Cloud status to Jira On-Prem String field

Originally asked by Harold Oconitrillo on 21 July 2023 (original question)


Hi,

We are trying to push the status from Jira Cloud into a string field in Jira On-Prem.

When I use a debug statement debug.error

("replica.status.name = ${replica.status.name}")

, the I see a string such as ‘Waiting’ or In Progress. But when I try to put that into a custom string field using

“issue.customFields."Current Status" = replica.status.name”

I receive an error.

Do I need to convert the value to a string or something?

Thanks.


Answer by Syed Majid Hassan on 22 July 2023

The value is already a string, but you need to put it into the value attribute of the customField i.e.

issue.customFields."Current Status".value = replica.status.name

Please give it a shot and let me know the result.

Thanks

Majid