My Jira expression is failing because I’m trying to compare an issue type id, which is a Number in the expression context, with a list of issue type ids that I’ve stored as Strings in a project entity property. Here is my Jira expression:
It’s unfortunate that this casting is required at all. I would much prefer the Jira Expression type IssueType to return id values as Strings, consistent with the Jira Server representation and the Jira REST API representation.
Aside: you can create Numbers from Strings, but not the other way around, I believe.
To create a String from Number, you can just concatenate it with an empty string (1 + "" == "1").
I agree that IDs should be returned as Strings rather than Numbers, which would be not only consistent with Jira Server (which is less important), but also with the Jira Cloud REST API. Unfortunately, this would be hard to change now as it could break existing expressions.