Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use Smart Values outside Automation?

Renata-Gabriela Kajcsa March 15, 2023


I'd like to use smart values outside automation rule. Is there a way to use them in JQL or Jira Expressions?

1 answer

0 votes
Charly [DEISER]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2023
Renata-Gabriela Kajcsa March 15, 2023

Thank you for answering. I saw this thread, but unfortunately this will not help us out, since it is still related to automation. 
We'd like to use smart values for other topic, not automation rules.

Thank you,
Renata

Ash Yadav
Community Champion
March 15, 2023

Hi @Renata-Gabriela Kajcsa , 

 

Can you give an example of what you're trying to achieve? 

JQL queries themselves are not isolated to just automation rules so if they work in an automation rule, they will also work in something like advanced issue search for example. 

If you give us more information to go off of we might be able to help you better. 

 

Kind Regards, 

Ash

Like Charly [DEISER] likes this
Renata-Gabriela Kajcsa March 15, 2023

Hi @Ash Yadav 

We thought about JQL combined with Smart Values as an alternative (our main goal is using Smart Values outside Automation).

When we tried testing if JQL can use Smart Values, we saw that it gives us an error: 

"The character '{' is a reserved JQL character. You must enclose it in a string or use the escape '\u007b' instead. (line 1, character 1)"

Is there a way to incorporate Smart Values in JQL in another way? Can you give me an example to follow?

 

 

Basically we're trying to create an input field, that uses Smart Values in order to save preferences for a feature in our plugin.

For example, we'd like to store, in ProjectSettings Page in an input type of field, information like {{issue.key}}{{customfield_xxxx.value}}. This information should then be available in IssuePage for each issue.

  1.    user types {{issue.key}}{{customfield_xxxx.value}} in out input field
  2.    in issue view there will be a label with this configurable information: MyIssue-1 MyCustomFieldXXXXValue

 

Hope this makes my intention to use Smart Values outside Automation clearer,

Renata

Ash Yadav
Community Champion
March 15, 2023

Hi @Renata-Gabriela Kajcsa 

 

For:

"The character '{' is a reserved JQL character. You must enclose it in a string or use the escape '\u007b' instead. (line 1, character 1)"

Usually for smart values you'd enclose them with quotations like '{{{issue.key}}' Within a JQL search.

 

You would still have to manually check your JQL to make sure they are valid.

 

I don't 100% follow what you're trying to achieve but I would be starting with this KB: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

And working on from there. 

 

KR, 

Ash

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events