Currently the API produces a configuration with unresolved macros.
There was an intention to deprecate the API, but use-case like JENKINS-42743 are actually valid. The old API should produce the formally correct XML at least
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Priority||Minor [ 4 ]||Major [ 3 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|