These smart values are only available for the Commit created development trigger. Or you could count how many issues have the same label, same fixVersion, etc. Any property used with the{{issue}}smart value can also be used with{{createdIssue}}. This is a list of metadata that can be associated with a build. {{issue.Request Type.currentStatus.status}} - Returns the status of the current request. You must be a registered user to add a comment. See all smart values related to user fields, such as Reporter or Assignee. You can access all fields of the parent. Because this smart value deals with multiple items (i.e: issues can have many Affects versions), it can be used with the#symbol to apply the rule to each individual component. 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. {{issue.Story Points estimate}} - Returns the issue's story point estimate (team-managed Jira Software Cloud only). All of the issues found by the trigger are then treated as a single bundle of issues. {{issue.components.name}}- Returns the values in the issue'sComponentfield. Learn how to find the right Jira automation smart values for your issue fields in Jira Cloud. The following example prints all the issue keys returned from the JQL search, in bullet point form. You can also use this with, . 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. {{deployment.environment}} returns information related to the deployment environment. Is there any information on the web available about the "{{#if functionality)? {{attachment.author.active}}: Returnstrue if their account is active, andfalse if not. {{attachment.author.emailAddress}}: Returnsthe email address associated with the user name. This value supportsDate and Time functions, e.g. {{issue.epic.key}} - Returns the epic's key, e.g. 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. First, you need a sample from the webhook payload data. 4877576. 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). Check out how we use smart values in our Jira automation template library. They are using the curly-brace syntax like { {someSmartValue}} . Using this branch component, we can move away from the main trunk of the rule and work on related issues. {{issue. And we have lots more automation templates and guides for you to use and learn from in the automation template library. The comment that triggers the rule is stored in this smart value. {{issue.comments.first.body}} - Returns the body of the first comment. Also provides the customer portal URL for Jira Service Management issues. Properties are frequently used by add-ons and integrations to store values. 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. If multiple values are changed (e.g. this is only available for some triggers. {{createdBranch.name}} - returns the name of the branch, {{createdBranch.url}} - returns the URL of the branch. Accesses a Tempo Account field's properties. 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. {{issue.parent.epic.summary}} - Returns the summary of the parent issue's epic. Or .displayName if accountId doe not work as hoped. Learn more about date and time smart values. FR Jira Dev Aug 05, 2021 I currently have an Automation workflow that creates multiple tasks and subtasks. Available anywhere smart values are supported, to access the value of a field that has changed. Would be good and useful functionality to have. [property]}} global admin section. View topic Examples of using math expression smart values {{fieldChange}}only contains the first changed value. Learn more about services in Jira Service Management, Learn more about configuring time tracking. Field value changed Available in Server Lite: No This can be obtained by sending a webhook to a webhook test site (like https://requestbin.com) or by intercepting the message by enabling Jira's HTTP access logs and HTTP dump from the System > Logging and Profilingscreen and then checking the request data. TEST-123-some-feature, {{pullRequest.sourceBranch.url}} returns the URL of the source branch, e.g.https://bitbucket.org/account/repo/TEST-123-some-feature. Learn more about using smart values with sections and lists. Learn about the concepts and procedures related to automation in Jira Cloud. For example, you might count how many issues have a priority of 'highest' and then send an alert. 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. The three properties above can also be added to this, for example,{{issue.affectedServices.dependentServices.tier}} will return the dependent services' tiers. Learn how to use these to interact with Jiras REST API. There is a feature request for it though - check outAUT-648. This smart-value allows you to access project specific attributes: Jira Service Management specific request type object that you can grab information from. {{issue.watchers.displayName}} - Returns the watcher's display name. Jira smart values in automation rules. Do more to earn more! Triggers will listen for events in Jira, such as when an issue is created or when a field value is changed. Access information related to the last branch that was created. You can check this by navigating to the "Custom fields" page in theglobal admin section. 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. Can be combined with other date and time smart values. Smart values are one of the most potent ways to do so. This re-fetches the latest state of the issue from Jira. You can also use the quick search (keyboard shortcut is . Used with: any triggers that edit an issue. Can only be used when the active issue is a subtask, and can't be used to access a standard issue's parent issue. {{issue.latest.description}} - Returns the status's description. You must be a registered user to add a comment. {{issue.url}} - Returns the URL of the issue. To get a property in it, we should use{{webhookData.someValue.childValue}}. Select Automations - Create Rule. I would like to use this in a reminder email, that is sent to two people, using as source two different people fields. Returns information related to all feature flags created in throughout the rule or branch, as a list. Fix versions of an issue as a list. A commit represents an individual change to a file (or set of files). when setting multiple Fix Versions) then you can iterate over these using the{{#changelog.fixVersion}}{{toString}}{{/changelog.fixVersion}}expression. For more information on when issues is available, seeRun a rule against issues in bulk. Smart values in Jira automation. {{version.startDate}} - Returns the version's start date. Your thorough reply here helped me in a completely different use case. This was something we have added since the split and I suspect that the server team has not caught up. See all smart values related to accessing Jira project details. The Atlassian Community can help you and your team get more value out of Atlassian products and practices. Challenges come and go, but your rewards stay with you. https://bitbucket.org/account/repo/TEST-123-some-feature. As a result of this design, the automation got initiated while triggered by a transition, however the data needed for the automation could not be yet updated. {{sprint.endDate}} -Returns the end date of the sprint. {{deletedFieldChanged.field}} - Returns the field that value has changed due to deletion of a value. Keep earning points to reach the top of the leaderboard. A pull request represents proposed changes before they are integrated into an official project. Learn more about using smart values with sections and lists. There are many ways you can edit a field. Automation is a great way to reduce the manual work of keeping story points up to date. They can add significant power and complexity to your rules. Again say it aloud: Whenever the field value changes for story points AND it is a sub-taskTHEN for the parent of the sub-task. Note that this will return an encoded URL; everything after bitbucket.org/ will look different from what you see here. See, This allows access to data that was sent along with the incoming webhook, Added by: Send web request with "Wait for response" checked. {{comment.visibility.value}} - Returns the comment restriction label if any, e.g. If this issue is in an Epic, then epic refers to the Epic issue. Accesses the value in the issue'sAffects versions field. These smart values are only available for the Pull request created, Pull request declined and Pull request mergedtriggers. Returns the value of the Jira Service Managements rate custom field. Whenever you want to edit a field in Jira, use the 'Edit issue' action. all fields available to{{issue}}are available here as well. {{rule.name}} - Returns the name of the rule that is currently running. You can also trigger rules to run from third party services like Bitbucket or GitHub. You can view the status of an automation rule to identify if the rule is currently active or not. A deployment represents the process in which a product is released in an environment. Used with the Version created, Version updated, and Version released triggers. The option to created linked issues (and then pick the blocked option) exists, but only to pick the issue from the trigger value or the most recently created issue to create a link. Returns the issue's comments. These can be combined with other date and time smart values. This value won't work for any other trigger, even if a comment was added as a result (e.g. Smart values are variables that you can use in automation action configuration parameters. It may contain, for example, branches and tags names.This value is optional and may be an empty list. Simply combine these components to create rules that can do anything from auto-closing old issues to notifying specific teams when a release has been shipped. action: log to the audit file this value. {{createdBranches.repository.url}} - returns the URLs of each repository. Learn more about using smart values with sections and lists. {{attachment.mimeType}}: Returnsthe file format of the attachment. ^ I tested this with Issues that had been in a previous Sprint, and were in the new Sprint being started - and the rule was successful, enteringonlythe new Sprint's name into the Description field, no old Sprint names. Select the Issue fields condition from the New condition drop-down menu. Automation is currently available in Jira Software Cloud and Confluence Cloud. That is not the correct custom field id for the field you want. {{issue.duedate}} - Returns theissue's due date. {{build.name}} returns the name of the build, e.g. If a rule is inactive, it will not execute until it is enabled. 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. However sometimes the two fields holds the same p. You can check this by navigating to the "Custom fields" page in the. You're on your way to the next level! {{sprint.isStarted}} - Returnstrue if the sprint has started, andfalse if not. {{issue.created}} - Returns the issue's creation date. 2 edit issue actions that need to 'add' to the value of a field instead of overwriting it). Get answers to your question from experts in the community, Automation JQL condition: using smart values. {{fieldChange.to}}Returns the new raw value, e.g. I would like the value that enters the text field to be the name of the sprint that created the trigger. {fieldChange.fromString}} - Returns the previous value as displayed. In the form that is shown, enter the details for your new webhook. Exclusive to the Approval required trigger: {{approval.initiator}} - Returns account id of initiator of request. Best practices for optimizing automation rules, View performance insights for automation rules, Connect your automation rule to another tool. The{{#if }} statement does not seem to work :(, {{issue.issuetype.name}} | {{ #if( eq(issue.issuetype.name, "Task")) }} This is a task {{ / }}. Used by triggers that involve adding a comment, such as Issue commented, Issue transitioned, or Issue updated. Ive tried with both format that you mentioned: Thanks, Sofia. The only situation where this is necessary, is where subsequent actions need to have visibility of the latest state of the issue (e.g. Please try just two around each side: Of note: what is the type of your field? - theIssue transitionedtrigger). If youre an Automation for Jira app customer on a server product, check out the Automation for Jira documentation for Jira Server. It looks like our Jira-server does not the{{#if }} statement :(, Get answers to your question from experts in the community, Share a use case, discuss your favorite features, or get input from the community, Smart value use of "{{#if }} does not seem to work, {{#if(issue.assignee.equals(issue.coordinator.accountId))}}. {{deployment.environment}} returns my-custom-prod-env, {{deployment.environment.type}} returns production. If multiple values are changed (e.g. {{issue.watchers.emailAddress}} - Returns the watcher's email address. Learn more about using smart values with sections and lists. You must be a registered user to add a comment. Examples of using math expression smart values. A representation of a release/version in Jira. 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}}. All of the issues found by the trigger are then treated as a single bundle of issues. For example, you might count how many issues have a . There should be a locked field named either "Request Type" or "Customer Request Type" there. I'll mention the docs discrepancies to the person that maintains our documentation. Share the love by gifting kudos to your peers. {{changelog.issuetype}} - Changelog information for theIssue type field. This applies to the legacy Insight app. This user must have the relevant permissions to trigger the rule, and complete any actions that may be performed. my-custom-prod-env, {{environment.type}} returns the environment type. This smart value only works for issues that have been added to an epic. Accesses information related to a file attachment on an issue. For example if a rule has both a Create branch in GitHub action and a Create branch in GitLab action, {{createdBranches}} will return the values of both branches as a list. Refers to the original issue that triggered the rule; used when you branch the chain. {{deletedFieldChanged.values}} - Returns the value/values deleted. However, you can now change the rule actor for your automation rules. {{fieldChange}}only contains the first changed value. {{commit.repository.url}} returns the repositorys URL. Here is an example automation rule which can be used as a templated rule for creating a Release Center Epic from any (or selected) Jira Software project versions automatically: Rule step. Also provides the customer portal URL forJira Service Management requests. They kick off the execution of your rules. Share the love by gifting kudos to your peers. Added by: Jira Triggers that edit an issue, All the fields that were changed. Because this smart value deals with multiple items (i.e: issues can have many watchers), it can be used with the#symbol to apply the rule to each individual component. {{approval}} - Returns the name of the approval. The status of a rule can be seen on its details screen. But it looks like functionality for the Jira cloud version. {{version.id}} - Returns the version's ID. Share the love by gifting kudos to your peers. The rule is running too quickly after the issue is created. Learn more about date and time smart values. I created an automation that created a value in a short text field. 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}} Check out how we use smart values in our Jira automation template library. Learn about the concepts and procedures related to automation in Jira Cloud, Smart values allow you to access issue data within Jira. What goes around comes around! Accesses information for the version that triggered the rule. {{issue.Customer Request Type}} - Returns the customer request type for older Jira instances. For more information on when issues is available, seeRun a rule against issues in bulk. General triggers These triggers can be used across all Jira products. [xxx].size}}: Returnsthe file size of a specific attachment. Seeaccesing multi-value fields, Added by: This is added any time an issue is added. They allow you to automate tasks and make changes within your site. Used with: Create branch in Bitbucket, Create branch in GitHub, and Create branch in GitLab actions. "sd.public.comment".internal}}, Best practices for optimizing automation rules, View performance insights for automation rules, Connect your automation rule to another tool. The following example sums all of the story points for issues returned from the JQL search. Refers to the original issue when you branch the chain. A list of issues that have been created in the rule. [Custom Field].description}} - Returns the text displayed below the custom field viewed in the Simple Search column. For example,jira:issue_updated :issue_commented. Each field is a list of changes. As ever, test this rule out in your own instance. Examples of how you can use smart values to set the text value of an issues field, such as Summary or Description. 2020-07-20T07:00:00.0+0000. Your image appears to show too many curly-brackets around the value. "sd.public.comment".internal}} -. If multiple values are changed, use # to iterate over these. For example, you can set up your rule to only escalate an issue if it is high priority. Note that environment contains additional nested smart values. https://bitbucket.org/{7faf7dee-a29b-4faa-bbc2-d7128a6d3278}/{315a3ecb-1f18-4953-98ae-5890f93073b5}/addon/pipelines/home#!/results/7, {{build.state}} returns the state of the build. Used to access information about an issue's epic. Understand the general concepts and best practices of automation in Atlassian Cloud products. See all smart values that access and manipulate Jira issue data such as sprint, parent, or version. {{issue.affectedServices.dependentServices}}- Returns the list of services that this issue's services depend on. when setting multiple Fix Versions) then you can iterate over these using the{{#changelog.fixVersion}}{{toString}}{{/changelog.fixVersion}}expression. Automation rules are made up of three parts: triggers that kick off the rule, conditions that refine the rule, and actions that perform tasks in your site. These smart values can only be accessed through other root keys (e.g{{deployment.environment}}). {{issue.project}} - the project this issue is a part of. {{attachment.author.accountId}}: Returnsthe ID associated with the user name. {{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. {{sprint.startDate}} - Returns the start date of the sprint. E.g. Join now to unlock these features and more. See all smart values that take issue fields and convert them into JSON format. Your smart value must identify a specific attachment for this to work. issue The active issue. {{issue.parent.priority.name}} - Returns the priority of the subtasks's parent issue. This value supports Date and Time functions. PROJ-213, {{issue.epic.status.name}} - Returns the epic's status, e.g. This example returns an issue's previous type, after it has been changed. Create an issue and update the Insight custom field with the object that have User attribute updated with portal only customer , and also add the portal only customer as reporter. {{flags.key}} returns the key of the feature flag. See all smart values that are used to insert and format numerical values using math expressions. {{sprint.goal}} - Returns the sprint goal. Smart values allow you to access and manipulate a wide range of issue data within your site. 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. If you have multiple webhook responses, you can add the#symbol to apply the rule to each individual response. Examples of how you can use smart values to set the numerical value of an issues field in your Jira automation rules. {{changelog.status}} - Changelog information for theStatus field. {{issue.key}} - Returns the issue's key, which is a unique identifier comprised of the project key and the issue's number. {{issue.comments.last.body}} - Returns the body of the last comment. 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. twoEdit issueactions that need toaddto the value of a field, instead of overwriting it. When we use this trigger, we can use the {{webhookData}} smart value to represent the POST payload - we'll focus on this here. {{attachment.created}}: Returnsthe date and time the attachment was added to the issue. You could then use this to count the number of issues returned. {{issue.resolution}} - Returns the issue's resolution. {addedfieldChange.field}} - Returns the field which has changed due to addition of a value. TEST-123-some-feature, {{branch.url}} returns the URL of the branch, e.g. Accesses time tracking estimates. If this issue is in an Epic, then epic refers to the Epic issue. {{comment.internal}} - forJira Service Management comments, returns false if the comment is visible to customers. Is the IF statement available for Server version? Do you have any idea how I find active sprint smart value? With our simple no-code rule builder, you can create automation rules to take care of everything from the most simple repetitive tasks to the most complex scenarios - all in a few clicks. Otherwise, register and sign in. {{issue.Request Type.requestType.name}} - Returns the customer request type. Learn more about user smart values. The trigger for automation is starting a new sprint (trigger = start sprint). For Jira Service Management requests only. {{issue. {{pullRequest.sourceBranch}} returns the name of the source branch, e.g. {{issue.issueType.name}} -Returns the issue's type, for exampleStory,Bug, orTask. For example, if the epic has a custom field calledInitiative, then{{issue.epic.Initiative}} will return the value in the Initiative field.