Allows access to data that was sent along with the incoming webhook, for example, the body of the webhook request. Added by: Sprint created, started or completed triggers. Challenges come and go, but your rewards stay with you. {{approval.decision}} - Returns the final decision of the approval. Here you can access any issue property. If a condition fails, the rule will stop running and no actions following the condition will be performed. 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 this issue is a sub-task, then parent refers to the parent issue. Used with: Create branch in Bitbucket, Create branch in GitHub, and Create branch in GitLab actions. Learn more about list smart values. {{commit.repository}} returns the information related to the repository. What goes around comes around! {{version.released}} - Returnstrue if the version is released, andfalse if not. - Any ideas on this one? Accesses any issue property. 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. Learn more about automation triggers. You must be a registered user to add a comment. 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). Join the Kudos program to earn points and save your progress. {{issue.components.name}}- Returns the values in the issue'sComponentfield. For example, if the epic has a custom field calledInitiative, then{{issue.epic.Initiative}} will return the value in the Initiative field. Similar to{{issue. Learn more about user smart values, {{approval.completedDate}} - Returns completion date of approval. Returns information related to the created feature flag. Learn more about date smart values. Smart values - syntax and formatting; Jira smart values - issues; Jira smart values - conditional logic; . {{build.refs}} returns the refs of the build, e.g. Click Create a webhook. {{pullRequest.destinationBranch}} returns the name of the destination branch, e.g.master, {{pullRequest.destinationBranch.url}} returns the URL of the destination branch, e.g. If multiple values are changed, use # to iterate over these. ), then type 'webhooks'. If a field or value doesn't exist, it will return an empty value:{{invalid reference}}. Possible states include pending, in_progress, successful, failed, cancelled, rolled_back, or unknown. Try adding.accountId after coordinator (so{{#if(issue.assignee.equals(issue.coordinator.accountId))}}. Thanks for sharing the link back in this question, it might help others in future! Share the love by gifting kudos to your peers. Learn more about user smart values. A list of issues generated by a trigger that runs a JQL search (Incoming Webhooktrigger orScheduledtrigger when set to process in bulk). Learn more about services in Jira Service Management. Is the IF statement available for Server version? 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). Returns the value of the Jira Service Managements rate custom field. See all smart values related to Assets in Jira Service Management Cloud. Some issue properties are more complex, and theyve been described in their own sections on this page. Navigate to your project in Jira. For example, when an issue is transitioned you can see what status the issue transitioned from. 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. {{sprint.originBoardId}} - Returns the ID of the board the sprint belongs to. global admin section. For example if a rule has both a Create branch in GitHub action and a Create branch in GitLab action, the details of the most recent branch will be returned. Challenges come and go, but your rewards stay with you. Is there a smart value that returns me only the name of the trigger sprint or at least only the name of the open sprint? {{commit.repository.name}} returns the name of the repository, e.g. Awesome! A pull request represents proposed changes before they are integrated into an official project. Learn more about date and time smart values. Find issues that have the same custom field date as trigger issue. You can check this by navigating to the "Custom fields" page in the. 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. Multiple comments on the active issue (this example is explained in detail inhow to use smart values), Components of an issue as a list. {{sprint.name}} - Returns the sprint name. Here, we choose the Issue fields' condition and clarify that the issue type we are looking out for is a sub-task. Can be combined with other date smart values. Used to access information about an issue's epic. However sometimes the two fields holds the same person, resulting in an email with twice the same name. Learn more about user smart values. {{fieldChange.to}}Returns the new raw value, e.g. Added by: Jira Triggers that edit an issue, All the fields that were changed. Learn more about using smart values with sections and lists. {{deployment.environment}} returns my-custom-prod-env, {{deployment.environment.type}} returns production. {{issue.comments.size}} - Returns the number of comments on the issue. These can be combined with other date and time smart values. You can also use this with, . { {issue. 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. Learn more about automation triggers. Field value changed Available in Server Lite: No Because this smart value deals with multiple items (i.e: issues usually have many comments), it can be used with the # symbol to apply the rule to each individual comment. 4877576. Note that this will return an encoded URL; everything after bitbucket.org/ will look different from what you see here. You could then use this to count the number of issues returned. Otherwise, register and sign in. Thisshould not be usedsince it requires an expensive reload of issue data. You can check this by navigating to the "Custom fields" page in theglobal admin section. The trigger for automation is starting a new sprint (trigger = start sprint). {{version.name}} - Returns the version's name. Jira smart values in automation rules. The Atlassian Community can help you and your team get more value out of Atlassian products and practices. Learn how to use automation in Confluence Cloud, and see what components and variables you can use to build rules. Learn more about using smart values with sections and lists. Automation is a great way to reduce the manual work of keeping story points up to date. 200, {{webhookResponse.headers}} - headers that can be accessed with dot nation, {{webhookResponse.body}} - body that can be accessed with dot nation, {{webhookResponses}} - list of responses made when list operations. A build represents the process in which files are converted into their final consumable form. Also provides the customer portal URL for Jira Service Management issues. Returns the value of the Jira Service Managements rate custom field. Your image appears to show too many curly-brackets around the value. {{version.id}} - Returns the version's ID. These smart values are only available for the Build successful, Build failed and Build status changed developmenttriggers. [xxx].size}}: Returnsthe file size of a specific attachment. {{attachment.author.accountId}}: Returnsthe ID associated with the user name. {{createdBranches.name}} - returns the names of the branches, {{createdBranches.url}} - returns the URLs of the branches. Thisshould not be usedsince it requires an expensive reload of issue data. {{issue.Story Points}} - Returns the issue's story point estimate (company-managed Jira Software Cloud only). This example shows the previous status id (for use in another Edit action). The three properties above can also be added to this, for example,{{issue.affectedServices.dependentServices.tier}} will return the dependent services' tiers. They kick off the execution of your rules. Share the love by gifting kudos to your peers. 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. 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}}. {{pullRequest.destinationBranch}} returns information related to the destination branch of the pull request. 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. Acording with the documentation, Automation JQL condition suport smart values. {{issue.affectedServices.dependentServices}}- Returns the list of services that this issue's services depend on. ^ 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. Visit the marketplace to integrate your build or deployment tool with Jira Cloud. Can be used with both Approval required and Approval completed triggers: {{approval.createdDate}} - Returns creation date of approval. See all smart values used to insert conditional logic such as if/equals/and statements into comments and other text fields. Any property used with the{{issue}}smart value can also be used with{{createdIssue}}. global admin section. text {{/}}, or is this a Jira-cloud only functionality ? {{comment.created}} - Returns the date and time of the comment. I'll ask one of their team to update you here. Learn how to integrate your source code management tool with Jira Cloud, Visit the marketplace to integrate your build or deployment tool with Jira Cloud. {{attachment.mimeType}}: Returnsthe file format of the attachment. 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). Available only for the pull request created trigger. Each DevOps trigger makes relevant smart values available, related to commits, changesets, committer users . And we have lots more automation templates and guides for you to use and learn from in the automation template library. Smart values allow you to access and manipulate a wide range of issue data within your site. 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. {{attachment. {{comment.properties. {fieldChange.toString}}- Returns the new value as displayed. Here you can access any issue property. You're on your way to the next level! Note that repository contains additional nested smart values. Seeaccesing multi-value fields.Properties for versions include:name, description, archived, released, releaseDate. {{sprint.startDate}} - Returns the start date of the sprint. Your thorough reply here helped me in a completely different use case. 2020-07-20T07:00:00.0+0000. In automation configuration , use "Issue Created" trigger and use the log action to get the smart value below :- When we use this trigger, we can use the {{webhookData}} smart value to represent the POST payload - we'll focus on this here. For example, you might count how many issues have a priority of 'highest' and then send an alert. The status of a rule can be seen on its details screen. {{flags.key}} returns the key of the feature flag. Do more to earn more! Examples of using smart values with dates. They allow you to access . 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. 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. {{branch.repository.name}} returns the name of the repository. Learn more about date smart values. The legacy Insight App will reach end of service on March 31, 2022. 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. Do more to earn more! Connect your source code management, build or deployment tool to use these smart values.