There should be a locked field named either "Request Type" or "Customer Request Type" there. Can be used with both Approval required and Approval completed triggers: {{approval.createdDate}} - Returns creation date of approval. Possible states include pending, in_progress, successful, failed, cancelled, or unknown. First, you need a sample from the webhook payload data. {fieldChange.fromString}} - Returns the previous value as displayed. Multiple comments on the active issue (this example is explained in detail inhow to use smart values), Components of an issue as a list. {{createdBranches.repository.url}} - returns the URLs of each repository. {{branch.repository.url}} returns the URL, e.g. You can also trigger rules to run from third party services like Bitbucket or GitHub. {{deployment.environment}} returns my-custom-prod-env, {{deployment.environment.type}} returns production. {{issue.timetracking.remainingestimate}} - Returns the value in the Time remaining field. See all smart values related to user fields, such as Reporter or Assignee. {{issue.security.name}} - Returns the security level name. Seeaccesing multi-value fields.Properties for versions include:name, description, archived, released, releaseDate. Andit appears you are using Server/Data Center version, as the Re-fetch action does not have the "delay rule" option for Cloud. For example, if the epic has a custom field calledInitiative, then{{issue.epic.Initiative}} will return the value in the Initiative field. {{fieldChange}}only contains the first changed value. The smartvalue{{webhookData}}gets the root of the JSON payload. You can access the current watchers of an issue. Added by: Sprint created, started or completed triggers. 2020-07-20T07:00:00.0+0000. - Any ideas on this one? Otherwise, register and sign in. {{comment.visibility.value}} - Returns the comment restriction label if any, e.g. {addedfieldChange.valueIds}} - Returns the id/ids of new value/values added. ISSUE-12: Fix bugs, {{pullRequest.url}} returns the absolute URL of the pull request, e.g.https://bitbucket.org/pull-request/182. The "Request Type" prefix may be"Customer Request Type" in older instances of Jira. Which Jira-server version supports the use of smart value: "{{#if }} text {{/}}, or is this a Jira-cloud only functionality ? The spacing format is mentioned in the following article: New automation smart values in Jira Cloud, https://jira.atlassian.com/browse/JIRAAUTOSERVER-212, Smart-value-in-published-article-doesn-t-work. Triggers will listen for events in Jira, such as when an issue is created or when a field value is changed. All of the issues found by the trigger are then treated as a single bundle of issues. Exclusive to the Approval required trigger: {{approval.initiator}} - Returns account id of initiator of request. "sd.public.comment".internal}} -. You can access all fields of the parent. {{versions.archived}}- Returnstrueif the affects version is archived, andfalseif not. They enable customizing automation actions to be useful for your team and your customers. Keep earning points to reach the top of the leaderboard. Learn more about using smart values with sections and lists. Join now to unlock these features and more. It resets every quarter so you always have a chance! They allow you to access and manipulate almost any data in Jira. Added by: Webhook TriggerThis allows access to data that was sent along with the incoming webhookThe body of the Webhook request. {{attachment.created}}: Returnsthe date and time the attachment was added to the issue. {{issue. {{comment.properties}} - Accesses any comment property. TEST-123-some-feature, {{repository.url}} returns the absolute URL of the repository, e.g. {{deployment.name}} returns a human-friendly deployment name, e.g. Every rule starts with a trigger. Used with: the Send web request action (Wait for response enabled). In the below example, we're sending out a notification that someone has added a comment to an issue, perhaps as a Slack message. Learn more about using smart values with sections and lists. Join the Kudos program to earn points and save your progress. Create and configure Jira automation rules, Branch automation rules to perform actions on related issues, Issue data (Automation format) payload for Send Web Request, Issue data (Jira format) payload for Send Web Request action, Limitations in team-managed projects for automation rules, Permissions required for Jira Cloud automation rules, Test a Jira automation rule using the Manual trigger, Transfer Jira automation rules from one user to another, Differences between Automation in Jira Server and Jira Cloud, Examples of using math expression smart values, Examples of using smart values with dates, Examples of using smart values with lists, Examples of using smart values with text strings, Use Jira automation rules to modify issues, Convert wiki markup to HTML or plain text in Jira automation, Move an issue to another project using automation, Learn how to use these to interact with Jiras REST API. [Custom Field].id}} - Returns the unique id for the field assigned by Jira. {{issue.TempoAccountField}} - Returns the name of the account, {{issue.TempoAccountField.id}} - Returns the ID of the account, {{issue.TempoAccountField.name}} - Returns the name of the account, {{issue.TempoAccountField.value}} - Returns the name of the account, Can be used with: the Approval required trigger and the Approval completed trigger. {{sprint.isClosed}} -Returnstrueif the sprint has closed, andfalseif not. I would like the value that enters the text field to be the name of the sprint that created the trigger. These can be combined with other date and time smart values. Note that this will return an encoded URL; everything after bitbucket.org/ will look different from what you see here. You can access the current watchers of an issue. Seeaccesing multi-value fields, Added by: This is added any time an issue is added. To test what your smart value returns, use themanual triggerwithlog actionand the result displays in theaudit log. Learn more about user smart values. Learn more about list smart values. Try adding.accountId after coordinator (so{{#if(issue.assignee.equals(issue.coordinator.accountId))}}. Learn more about services in Jira Service Management, Learn more about configuring time tracking. See all smart values that can manipulate the values of items in a list. Create a sample project and follow all of the breadcrumbs in the audit log of the rule details. When we use this trigger, we can use the { {webhookData}} smart value to represent the POST payload - we'll focus on this here. 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) 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 arehere). To get a property in it, we should use{{webhookData.someValue.childValue}}. There are many ways you can edit a field. action: log to the audit file this value. Share the love by gifting kudos to your peers. {{version.startDate}} - Returns the version's start date. Jira Software Automation: Basics & Common Use Cases - Atlassian Issue commented, Added by: Clone Issue Action, Create Issue Action, Create Sub-tasks Action, A list of issues that have been created in the rule, The type of event that triggered the rule such as: jira:issue_updated :issue_commented. Learn about the concepts and procedures related to automation in Jira Cloud. Learn how to use automation in Confluence Cloud, and see what components and variables you can use to build rules. Or you could count how many issues have the same label, same fixVersion, etc. How releases get into the Release Center - Atlassian Community Learn more about date and time smart values. @Daniel Ramotowski, more people seem to be interested in this functionality, as there was already a ticket open forhttps://jira.atlassian.com/browse/JIRAAUTOSERVER-212 ! For more information on when issues is available, see, Multiple comments on the active issue (this example is explained in detail in, Properties for versions include:name, description, archived, released, releaseDate, "Customer Request Type" in older instances of Jira. If multiple values are changed (e.g. View topic Examples of using math expression smart values View topic Find the smart value for a field Learn how to find the right Jira automation smart values for your issue fields in Jira Cloud. Now whenever this field changes in Jira, this automation rule kicks in. 2020-07-20T07:00:00.0+0000. Prints the issue key and its status (e.g. For example, you can use the following smart values to send a Slack message that includes the issue key and issue summary: {{issue.key}} {{issue.summary}}. Or .displayName if accountId doe not work as hoped. {{addedfieldChange.values}} - Returns the new value/values added. 7, {{deployment.url}} returns the absolute URL of the deployment, e.g. 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, A list of issues generated by a trigger that runs a JQL search (, trigger when set to process in bulk). {{issue.fixVersions.name}} - Returns the name of the fix version. Jira Software Questions Smart value of trigger issue in automation Smart value of trigger issue in automation Eliyahu Klein Jan 09, 2023 Hi, I created an automation that created a value in a short text field. You could then use this to count the number of issues returned. {{flags.name}} returns the name of the feature flag. Jira automation - Data Center and Server (Latest), Examples of using smart values with dates, Examples of using smart values with lists, Examples of using math expression smart values, Examples of using smart values with text strings. You could then use this to count the number of issues returned. You could then use this to count the number of issues returned. They kick off the execution of your rules. my-custom-prod-env, {{environment.type}} returns the environment type. PROJ-213, {{issue.epic.status.name}} - Returns the epic's status, e.g. See all smart values related to Assets in Jira Service Management Cloud. {{flags.key}} returns the key of the feature flag. Learn more about using smart values with sections and lists. Thisshould not be usedsince it requires an expensive reload of issue data. However sometimes the two fields holds the same person, resulting in an email with twice the same name. Approval required: accesses information when an issue that requires approval is created or updated, or when new approvers are added to an issue. The rule actor is the user who executes a rule. Working with incoming webhook data in Automation for Jira {{createdBranches.product}} - returns the products that the branches were created in. Added by: Sprint created, started or completed triggers. {{branch.repository.name}} returns the name of the repository. global admin section. This value supports Date and Time functions. Triggers can be set to run on a schedule, and can be customized before being applied to a rule. Syntax example The smartvalue { {webhookData}} gets the root of the JSON payload. The URL to access the issue. In automation configuration , use "Issue Created" trigger and use the log action to get the smart value below :- For example,jira:issue_updated :issue_commented. Story points are integral for many agile teams. In this component, we use the following settings:The email address of the reporter is captured in the smart value {{reporter.emailAddress}}, but we need to use it in a URL and therefore will use the smart value {{reporter.emailAddress.urlEncode . If it has a time you may need to strip off the time part for the comparison by changing the format: {{triggerIssue.customfield_10043.jqlDate}}. 2020-07-20T07:00:00.0+0000. Automation is a great way to reduce the manual work of keeping story points up to date. all fields available to{{issue}}are available here as well. {{issue.comments.last.body}} - Returns the body of the last comment. Accesses the value in the issue'sAffects versions field. Jira automation - Data Center and Server (Latest), Examples of using smart values with dates, Examples of using smart values with lists, Examples of using math expression smart values, Examples of using smart values with text strings. Jira smart values - issues To test what your smart value returns, use the manual trigger with log action and the result displays in the audit log. [Custom Field].name}} - Returns the visible label displayed on the left of the field. 2 edit issue actions that need to 'add' to the value of a field instead of overwriting it). On successful request, you will be able access webhook response data using the following smart values: The worklog entry that has just been logged against an issue. Learn more about configuring time tracking. {{version.description}} - Returns the version's description. {{approval}} - Returns the name of the approval. "sd.public.comment".internal}}, Best practices for optimizing automation rules, View performance insights for automation rules, Connect your automation rule to another tool. Go to templates. Reviewing your audit logs is an effective way of debugging your rules. Connect thousands of apps for all your Atlassian products, Run a world-class agile software organization from discovery to delivery and operations, Enable dev, IT ops, and business teams to deliver great service at high velocity, Empower autonomous teams without losing organizational alignment, Great for startups, from incubator to IPO, Get the right tools for your growing business, Docs and resources to build Atlassian apps, Compliance, privacy, platform roadmap, and more, Stories on culture, tech, teams, and tips, Training and certifications for all skill levels, A forum for connecting, sharing, and learning. I'll mention the docs discrepancies to the person that maintains our documentation. Special conditions and actions are available to create powerful rules that can work across complex issue relationships. Accesses the details of a subtask's parent issue. Also provides the customer portal URL for Jira Service Management issues. {{sprint.name}} - Returns the sprint name. Each of your rules will have an audit log that you can review to see when the rule was triggered, the final result of the execution, and any actions that may have been performed. {{fieldChange}}only contains the first changed value. Also provides the customer portal URL forJira Service Management requests. {{issue.Customer Request Type}} - Returns the customer request type for older Jira instances. That looks a little odd. {{issue.comments.reverse.body}} - Returns the issue's comments, in reverse order. {{deletedFieldChanged.field}} - Returns the field that value has changed due to deletion of a value. Use{{fieldChange.fromString}}and{{fieldChange.toString}}to access display values and{{fieldChange.from}}and{{fieldChange.to}}to access raw values (for a select field for example). {{createdBranch.name}} - returns the name of the branch, {{createdBranch.url}} - returns the URL of the branch. Each DevOps trigger makes relevant smart values available, related to commits, changesets, committer users . Is there a way to similar functionality in Jira-Server? A condition refines the rule so it wont act too broadly. You can access an insight field's full name, key, or summary through the following smart values: You can access a Tempo Account field's properties through the following smart values: To test what your smart value returns, use the, The active issue. Learn more about list smart values. {{sprint.isStarted}} - Returnstrue if the sprint has started, andfalse if not. In the project menu, click on Project Settings. You can also use this with, . Learn more about date and time smart values. {{attachment.author}}: Returnsthe user who added the attachment. The type of event that triggered the rule. {{issue.project}} - the project this issue is a part of. Share the love by gifting kudos to your peers. Added by: Send web request with "Wait for response" checkedOn successful request, you will be able access webhook response data using the following smart values: Multiple responses can be access via the following fields: Added by: Worklogged TriggerThe worklog entry that has just been logged against an issue. Learn more about using smart values with sections and lists. What goes around comes around! You can check this by navigating to the "Custom fields" page in theglobal admin section. [xxx].size}}: Returnsthe file size of a specific attachment. {{issue.fixVersions.released}} - Returnstrue if the fix version is released, andfalseif not. You could then use this to count the number of issues returned. These smart values can only be accessed through other root keys (e.g{{deployment.environment}}). To prevent this, I thought let's use this construct: {{#if(issue.assignee.equals(issue.coordinator))}} Name 1,{{/}}. {{issue.resolution}} - Returns the issue's resolution. Looking forward to see it implemented soon! We select the exact field we are listening out for, in this case story points. Added by: Jira Triggers that edit an issue, All the fields that were changed. Can be combined with other date and time smart values. Smart Commit examples to use with Git and Automation for Jira {{issue.affectedServices.tier}} - Returns the tiers of the issue's Affected services. The rule is running too quickly after the issue is created. {{createdBranches.repository}} - accesses details of the branches' repositories, {{createdBranches.repository.id}} - returns the IDs of each repository, {{createdBranches.repository.name}} - returns the names of each repository. On successful request, you will be able access webhook response data using the following smart values: The worklog entry that has just been logged against an issue. See all smart values that can access and manipulate text fields, such as issue summary or comments. Jira smart values in automation rules. Each field is a list of changes. These smart values can only be accessed through other root keys (e.g. {{version.archived}} - Returnstrue if the version is archived, andfalse if not. We do not currently support accessing fields within insight objects. Learn more about services in Jira Service Management. They are variables in the sense that their actual values will be calculated while the automation rule is being executed: You can use two types of smart values: Go to Jira administration console > System > Webhooks (in the Advanced section). If you have multiple webhook responses, you can add the#symbol to apply the rule to each individual response. You can view the audit log of an individual rule, project-wide or at a global level. For example, you might count how many issues have a priority of 'highest' and then send an alert. {{pullRequest.updatedDate}} returns the time (UTC) when the pull request was last updated (created, declined or merged), e.g. In this template, we show you how to sum up the story points of all sub-tasks then update the parent issue with this value. {{attachment.author.accountId}}: Returnsthe ID associated with the user name. This smart-value allows you to access project specific attributes: Jira Service Management specific request type object that you can grab information from. If I use a smart value of type: {{sprint.name}} the field returns me all the sprints that exist in the "sprint" field, including those that are already closed. Suggestion re: {{approval}} Smart Value and subfields - Atlassian A pull request represents proposed changes before they are integrated into an official project. You can also use this withlists. {{issue. Get answers to your question from experts in the community, Smart value of trigger issue in automation. Any idea if this will be added, and if so when? Smart values in Jira automation. Challenges come and go, but your rewards stay with you. Just for future visibility (for anyone else who finds this question), I tested a few of the options in the linked question above, and another question which was linked to from there. The status of a rule can be seen on its details screen. {{webhookResponse.status}} - response code e.g. for a select field. Check out how we use smart values in our Jira automation template library. The only situation where this is necessary, is where subsequent actions need to have visibility of the latest state of the issue (e.g. If a rule is inactive, it will not execute until it is enabled. A deployment represents the process in which a product is released in an environment. Connect thousands of apps for all your Atlassian products, Run a world-class agile software organization from discovery to delivery and operations, Enable dev, IT ops, and business teams to deliver great service at high velocity, Empower autonomous teams without losing organizational alignment, Great for startups, from incubator to IPO, Get the right tools for your growing business, Docs and resources to build Atlassian apps, Compliance, privacy, platform roadmap, and more, Stories on culture, tech, teams, and tips, Training and certifications for all skill levels, A forum for connecting, sharing, and learning. I would like to use this in a reminder email, that is sent to two people, using as source two different people fields. {{version.id}} - Returns the version's ID. If you're not using a Sprint Trigger, I don't believe it's possible to locate the active Sprint via smart values. [property]}}, you can also access custom field information on your issues. This is how you would return multiple responses using the smart value: Accesses information for a worklog entry that has just been logged against an issue. In your site, the rule actor will be set as Automation app user. After a lot of searches, I found the answer on: https://community.atlassian.com/t5/Jira-questions/Store-Active-Sprint-in-New-Field-Using-Jira-Automation-Script/qaq-p/1695408. Click Create a webhook. All of the issues found by the trigger are then treated as a single bundle of issues. These smart values are only available for the Branch created development trigger. And the rule itself? These can be combined with other user smart values. Jira smart values - issues | Cloud automation Cloud - Atlassian Support {{issue.issueType.name}} -Returns the issue's type, for exampleStory,Bug, orTask. You must be a registered user to add a comment. You can also use this with, . Solved: Automation JQL condition: using smart values - Atlassian Community See, This allows access to data that was sent along with the incoming webhook, Added by: Send web request with "Wait for response" checked. Keep earning points to reach the top of the leaderboard. The URL to access the issue. E.g. Please try just two around each side: Of note: what is the type of your field? Note that repository contains additional nested smart values. Accesses a Tempo Account field's properties. For example,{{issue.affectedServices.changeApprovers.displayName}} will return their names. I am glad to learn that helped you. What that error tells me one of three things is happening: Let's try this: immediately after your trigger, add two things: a) If the rule works after adding the re-fetch, the cause was #1, b) If the audit log does not show your date, it is either #2 or #3. The issue smart values are used to access information related to the rules active issue, which is the issue the rule is currently acting on. For example, checking that all sub-tasks of a parent issue are resolved. {{addedFieldChanged.fieldType}} - Returns the fieldType of the field that has changed due to addition of a value. {{issue.created}} - Returns the issue's creation date. Any property used with the{{issue}}smart value can also be used with{{createdIssue}}. For example, {{attachment.first.size}} will return the file size of the first attachment. It is better to use this than name as it cannot be changed.