Automation rule to append Assignee Full Name to the end of the Summary field
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This article describes how to create an Automation Rule using the add-on Automation For Jira (for Jira Server/Data Center) that will:
- append the Assignee Full Name to the end of the Summary field, in case the Jira issue is changed from unassigned to assigned
- remove the Assignee Full Name from the end of the Summary field, in case the Jira issue is changed from assigned to unassigned
- do nothing, in case the Jira issue was created without any assignee
Environment
Jira 8.0.0 and above with Automation for Jira 7.4.0 and above.
Solution
The automation rule needs to be configured as shown below in the screenshot below:
You can find more details about each block below:
- If: matches
- Advanced Compare Condition
First Value:
{{fieldChange.fromString}}
- Condition: Equals
- Second value: Empty
- Advanced Compare Condition
- Then: Edit Issue fields (under If: matches)
- Field: Summary
Value (copy the formula using smart value below):
{{issue.summary}} - {{issue.assignee.displayName}}
- Else-if: matches
- Advanced Compare Condition
First Value:
{{fieldChange.toString}}
- Condition: Equals
- Second value: Empty
- Advanced Compare Condition
Then: Edit Issue fields (under Else-if: matches)
- Field: Summary
Value (copy the formula using smart value below):
{{issue.summary.replace(fieldChange.fromString,fieldChange.toString).replace(" - ","")}}
- Else
- Then: Edit Issue fields (under Else: matches)
- Field: Summary
Value (copy the formula using smart value below):
{{issue.summary.replace(fieldChange.fromString,fieldChange.toString)}}