"Evaluation failed: \"serviceDesk.requestTypeId\" - Unrecognized property of `serviceDesk`: \"requestTypeId\" ('requestTypeId'). Available properties of type 'ServiceDesk' are: 'id', 'project'"
I also tried "serviceDesk.id == 2 && customerRequest.requestType.id == 38"
and "serviceDesk.id == 2 && requestType.id == 38"
Which both did not yield the expected result of “only display iframe in project (1) for requestType id (38)”
Interestingly enough, the App Connect docs say this about servicedesk context params:
servicedesk.requestTypeId for ‘Create request view’ and ‘Request details view’
It seems like the URL context params are populated different than the values evaluated in the module condition block.
Am I out of luck trying to restrict a “Request Create Entity Property Panel” to a specific issue type?
Thanks again @kkercz! It looks like customerRequest is null when accessing the “Create Request” service desk page:
"Evaluation failed: \"customerRequest.fakeTestProperty\" - Unrecognized property of `customerRequest`: \"fakeTestProperty\" ('fakeTestProperty'). Type null does not have any properties"
Going back to my earlier question: it looks like there’s some inconsistency in what values are available to the expression evaluator and the webhooks. I can send the requestTypeId to the webhook URL, but the customerRequest expression property is null.
Indeed, variables available in webhook URLs are different to context variables available in expressions. It’s a different mechanism.
If customerRequest is not available in your context, you can still get the issue type directly from the issue: issue.issueType.id. As far as I know, customer request types are directly mapped to issue types anyway.
Appears that the context available to requestCreatePropertyPanel is too limited to actually evaluate any conditionals beyond “only display for this project.”