...
Like version variable, passing value of custom variable in the Webhook URL is optional and rule would still get triggered when additional parameter is not passed.
Like version variable, you can include multiple variables for the same field in the JQL and then pass their corresponding values in the webhook URL.
Example: Value of two labels field variables (ARN & Upraise) is passed in webhook URL below
JQL :Code Block projoect="[projectId]" and fixVersion ="[versionId]" and labels in ("[labelName]","[labelName1]")
You can exclude version variable altogether and only use custom variable like this :
JQL :Code Block projoect="[projectId]" and labels = "[labelName]"
Webhook:
https://arn.upraise.io/arn/executewebhook/42256/b5b995e3-bb1b-4bf9-adda-efae0dda458b?labelName=ARNYou can include multiple such custom variables in the JQL and pass their values to webhook URL
Example: Value of a labels field (ARN) and component field (Rules) is passed in webhook URL below
JQL :Code Block projoect="[projectId]" and labels = "[labelName]" and components = "[componentName]"
In case the template has multiple JQLs and the custom variable is included only in few of them, in that case, system shall ignore the custom variable passed in webhook for the JQLs in which that custom variable is not included.
In case of custom variables for user picker fields like assignee, reporter, while passing their value in the webhook URL , use their Jira account id instead of Jira user names.
Example : in below JQL, if you have to pass variable value for the Jira user “John W”, you have to use his Jira account Id.
JQL :Code Block projoect="[projectId]" and assignee="[assigneeName]"
There is no change in template preview screen and users shall not be able to pass value to custom variable in the template preview through version selector screen.