Did the parameter for status.receive() changed?

Originally asked by Jinjun Zhang on 18 November 2019 (original question)


Hi,

We recently start seeing issue with status.receive()

On wiki page https://docs.idalko.com/exalate/display/ED/Status+synchronization+on+Jira+cloud+with+multiple+transitions+on+a+single+sync

it mentioned there are 4 parameters like:
Status.receive(boolean, map, map, map)

But the error message I got mentioned that it should be
Status.receive(boolean, map, map, map, boolean)

By using the above (set the last boolean to true), it does solve the problem. But i’m not sure what is does and I don’t see any documentation about it.

Thanksm


Answer by André Leroy-Beaulieu Castro on 04 December 2019

Hi Jinjun,

Thanks for raising this community question.

Indeed, the Status.groovy for Jira Cloud now has a “onlyDirectTransitions” parameter of type boolean.

As you can guess by the name, the purpose of this parameter is to decide whether you want Exalate to execute transitions that require more than one step (setting the argument to false) or only direct transitions (setting the argument to true).

Best regards,

André