public class JiraExpressionsApi extends Object
| Constructor and Description |
|---|
JiraExpressionsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<JiraExpressionsAnalysis> |
analyseExpression(JiraExpressionForAnalysis jiraExpressionForAnalysis,
Optional<String> check,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Analyse Jira expression
Analyses and validates Jira expressions.
|
io.reactivex.Single<JiraExpressionResult> |
evaluateJiraExpression(JiraExpressionEvalRequestBean jiraExpressionEvalRequestBean,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Evaluate Jira expression
Evaluates a Jira expression and returns its value.
|
public JiraExpressionsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<JiraExpressionsAnalysis> analyseExpression(JiraExpressionForAnalysis jiraExpressionForAnalysis, Optional<String> check, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
jiraExpressionForAnalysis - The Jira expressions to analyse. (required)check - The check to perform: * `syntax` Each expression's syntax is checked to ensure the expression can be parsed. Also, syntactic limits are validated. For example, the expression's length. * `type` EXPERIMENTAL. Each expression is type checked and the final type of the expression inferred. Any type errors that would result in the expression failure at runtime are reported. For example, accessing properties that don't exist or passing the wrong number of arguments to functions. Also performs the syntax check. * `complexity` EXPERIMENTAL. Determines the formulae for how many [expensive operations](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/#expensive-operations) each expression may execute. (optional, default to syntax)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<JiraExpressionResult> evaluateJiraExpression(JiraExpressionEvalRequestBean jiraExpressionEvalRequestBean, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
jiraExpressionEvalRequestBean - The Jira expression and the evaluation context. (required)expand - Use [expand](#expansion) to include additional information in the response. This parameter accepts `meta.complexity` that returns information about the expression complexity. For example, the number of expensive operations used by the expression and how close the expression is to reaching the [complexity limit](https://developer.atlassian.com/cloud/jira/platform/jira-expressions/#restrictions). Useful when designing and debugging your expressions. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.