If youre an Automation for Jira app customer on a server product, check out the Automation for Jira documentation for Jira Server. {{branch.repository.url}} returns the URL, e.g. Whenever you want to edit a field in Jira, use the 'Edit issue' action. Refers to the original issue when you branch the chain. Connect your source code management, build or deployment tool to use these smart values. {{comment.visibility.type}} - Returns the comment restriction type if any, e.g. To get a property in it, we should use{{webhookData.someValue.childValue}}. {{flag.key}} returns the key of the feature flag. {{comment.internal}} - forJira Service Management comments, returns false if the comment is visible to customers. See all smart values that take issue fields and convert them into JSON format. In the example below, we have a custom field calledTeam Leader, and the value of thefield is currentlyAlana Grant. {{commit.hash}} returns the SHA1 hash of the commit, e.g.4877576951f3eda43625d3345058e702dad3df0d. You were right, the rule was running too quickly, so the field was empty.I modify de trigger to give it time, and got the result expected. The trigger for automation is starting a new sprint (trigger = start sprint). Share the love by gifting kudos to your peers. For example, when setting multiple Fix Versions, then you can iterate over these using{{#changelog.fixVersion}}{{toString}}. Examples of using math expression smart values. You're on your way to the next level! {{issue. Use an IDE like Visual Studio Code to find the path. Learn more about list smart values. Smart values are variables that you can use in automation action configuration parameters. Accesses the value in the issue'sAffects versions field. 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. 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. 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. Access information related to all branches created in the rule, as a list. {{deletedFieldChanged.fieldId}} - Returns the fieldId of the field that has changed due to deletion of a value. 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. {{version.archived}} - Returnstrue if the version is archived, andfalse if not. Now, I want to run automation even without a sprint trigger (scheduled trigger). {{createdBranch.product}} - returns the product that the branch was created in (for example, Bitbucket). Learn more about user smart values, {{approval.completedDate}} - Returns completion date of approval. 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. If you have multiple webhook responses, you can add the#symbol to apply the rule to each individual response. Learn more about user smart values. 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. role. It resets every quarter so you always have a chance! Accesses the values in an issue'sAffected services field. Set the Equals condition to true. Visit the marketplace to integrate your build or deployment tool with Jira Cloud. Check out some common DevOps automation rules where you can use these smart values. {{issue.key}} - Returns the issue's key, which is a unique identifier comprised of the project key and the issue's number. Learn how to use automation in Confluence Cloud, and see what components and variables you can use to build rules. Now whenever this field changes in Jira, this automation rule kicks in. Smart values in Jira automation. How releases get into the Release Center - Atlassian Community What goes around comes around! Used with: the Clone issue, Create issue, and Create sub-tasks actions. See all smart values related to accessing Jira project details. Note that repository contains additional nested smart values. You could then use this to count the number of issues returned. Fix versions of an issue as a list. {{issue. 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. For example, if a rule is created that will comment on an issue when executed, the rule actor must have the Add comment permission, otherwise the rule will result in an error. A representation of a release/version in Jira. this is only available for some triggers. Story points are integral for many agile teams. I am glad to learn that helped you. {{deployment.environment}} returns information related to the deployment environment. {{issue.created}} - Returns the issue's creation date. You could then use this to count the number of issues returned. TEST-123-some-feature, {{repository.url}} returns the absolute URL of the repository, e.g. If this issue is a sub-task, then parent refers to the parent issue. Join the Kudos program to earn points and save your progress. Seeaccesing multi-value fields, Added by: This is added any time an issue is added. 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. Examples of using smart values with dates. For example, you can set up your rule to only escalate an issue if it is high priority. {{pullRequest.createdDate}} returns the time (UTC) when the pull request was created, e.g. As for if and when the support will go to server, I have no idea. Join now to unlock these features and more. Approval required: accesses information when an issue that requires approval is created or updated, or when new approvers are added to an issue. 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. Your smart value must identify a specific attachment for this to work. https://bitbucket.org/account/repo. It some places it pops up, but there is no real explanation. This value supportsDate and Time functions. {{deployment.environment}} returns my-custom-prod-env, {{deployment.environment.type}} returns production. https://bitbucket.org/account/repo/TEST-123-some-feature, {{pullRequest.destinationBranch.repository}}, https://bitbucket.org/{7faf7dee-a29b-4faa-bbc2-d7128a6d3278}/{315a3ecb-1f18-4953-98ae-5890f93073b5}/addon/pipelines/home#!/results/7, [feature/ISSUE-123-some-work, feature/ISSUE-456-more-work], https://bitbucket.org/{6d6d87be-bdc2-42b5-ad8f-85cb915abc38}/{80c30dd6-2d2f-401c-ac33-8317adbc509d}/addon/pipelines/deployments#!/deployments/{888ba48c-0011-5a46-9d59-8da313851383}, Best practices for optimizing automation rules, View performance insights for automation rules, Connect your automation rule to another tool. If you're not using a Sprint Trigger, I don't believe it's possible to locate the active Sprint via smart values. A build represents the process in which files are converted into their final consumable form. Refers to the original issue that triggered the rule; used when you branch the chain. {{pullRequest.destinationBranch.repository}} returns information related to the destination branchs repository. {{issue.duedate}} - Returns theissue's due date. This example returns the new value of an issue'sSummary field after it has been changed. The rule triggers on 'Issue created' and is followed by the 'Send web request' component. {{pullRequest.state}} returns the state the pull request is in - Open, Merged, or Declined. "sd.public.comment".internal}}, Best practices for optimizing automation rules, View performance insights for automation rules, Connect your automation rule to another tool. If multiple values are changed (e.g. See all Jira Cloud automation smart values related to date and time. action: log to the audit file this value. Click Create a webhook. If more than one flag has been created throughout the rule, {{flag}} will return the most recently-created flag. {{deployment.state}} returns the state of the deployment. They often contain sub-tasks, are stories that are part of a larger epic, or are simply linked to other issues using certain relationships. The problem with the interface was, that it worked in two steps - first the re-open transition and then the update of fields. That looks a little odd. The following smart values are available to access and format development information from a connected source code management tool. In the below example, we list each fix version that the issue has been added to, followed by the version's release date, in bullet point form. https://bitbucket.org/commit/121212, {{commit.isMergeCommit}} returns True if commit is a merge commit, {{commit.timestamp}} returns the timestamp (UTC) the commit was created. You can also trigger rules to run from third party services like Bitbucket or GitHub. 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. In this case, we want to choose the Field value changed trigger. They are using the curly-brace syntax like { {someSmartValue}} . {{deletedFieldChanged.valueIds}} - Returns the id/ids of value/values deleted. Available only for the pull request created trigger. In Linux/Mac OS, use a jq command, such as: In Windows, we can use Powershell's ConvertFrom-Json: Working with incoming webhook data in Automation for Jira. All of the issues found by the trigger are then treated as a single bundle of issues. Keep earning points to reach the top of the leaderboard. 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. Acording with the documentation, Automation JQL condition suport smart values. See all smart values related to user fields, such as Reporter or Assignee. Is the IF statement available for Server version? Learn how to use automation in Confluence Cloud, and see what components and variables you can use to build rules. {{commit.message}} returns the commit message, e.g. You must be a registered user to add a comment. {{version.released}} - Returnstrue if the version is released, andfalse if not. {{flag.name}} returns the name of the feature flag. If a customer has not responded to an issue in 5 days, close the issue and leave a comment. Join the Kudos program to earn points and save your progress. {{sprint.endDate}} -Returns the end date of the sprint. {{issue.affectedServices.dependentServices}}- Returns the list of services that this issue's services depend on. {{version.description}} - Returns the version's description. When an issue is raised without an assignee, auto-assign to whoever created it. Accesses an insight field's full name, key, or summary.