To test what your smart value returns, use the manual trigger with log action and the result displays in the audit log.. issue. The active issue. Through the dot notation you can access fields like issue type, status and custom fields (details on how you can use these to interact with Jira's REST api are here)
Automation for Jira has the awesome feature "Smart Values". The documentation also shows several functions you can use with Smart Values. The ones I am looking at are "left" and "lastIndexOf". I have a "System Version" field that I need to take the value 3.51.2.12 and get 3.51.2. (To plug into a JQL query to get all values on a similar version.)
Use smart values in your automation rules to access and format Assets objects. View the smart values available in Jira Service Management Cloud.
Related smart values: Jira smart values - projects. Rule will run when a project is created. For example, this could be useful if you want to create a set of default issues that should be included in all Jira projects. Scheduled. Related smart values: {{issue}} This rule runs on a specified schedule.
Overview Automation in Jira Service Management is a βno-codeβ capability that only takes a few clicks. By automating your processes and workflows, you remove the need for you and your team to perform manual, repetitive tasks β and you can focus on the work that matters.
Start a free Jira Premium trial for increased automation limits, advanced planning, and more. Try Jira Premium. Find hundreds of Jira automation templates to save time and connect your tools. Create your own automation rules in our sandbox automation playground.
I used the JIRA REST API to find out the custom filed smart value. The field name is customfield_10055 and it has also attribute emailAddress, which is taken from the assignee. So, basically in JSON, I see that in emailAddress there is my address, as long as I am the business tester. but when I use the smart value in the rule it returns nothing
We use Jira Asset Management and have a [Unit] object with an Attribute that we have configured with the "Organization". When requestors submit a new ticket, the [Unit] Asset field is on the request intake. I want to use automation to have Jira lookup the Organization attribute in the Asset record
The first one is easy to solve. Instead of summary use the smart value { {issue.summary}}. The second part, " Product Article Number" if it's a text custom field the smart value { {issue.Product Article Number}} should work, but the field can't be empty when the issue is created (You're using the trigger "Issue is created"). I hope that helps.
The way I test it for instance is that I have a service desk request when I need to create a new account for a user. When the request is created , it create 2 sub task attached to the TSD request. using automation I set the description field of the fisrt task by getting the user name using smart value syntax
dc3S4.