Mark
Mark Author of this Blog, Product Manager, Agilist & Jira Jedi.

Jira: Auto Update Fields When Specific Comments Are Made


Jira: Auto Update Fields When Specific Comments Are Made

Introduction

This post addresses how to recognise when a specific string of text has been added to a Jira comment and then posting the comment into a given field via automation.

User Story

As a Product Owner, I would like when a comment starting with a given value is added to an issue, its contents will be copied to a custom field so that I can access information without digging through comments.

How To Implement

In the following example, we are looking for a Sharepoint link and adding the comment with this link to a Sharepoint Link field.

  1. Add your trigger (I suggest ‘When Issue Commented’)

  2. Add a new condition -> Advanced Compare Condition
    1. Set the First Value to {{ issue.comments.last }}
    2. Condition should be ‘Starts with’
    3. Second Value is ‘xxx’ (i.e the text you want to identify)
  3. Add a new action -> Create Variable
    1. Name the variable ‘Link’
    2. Set the Smart value to {{issue.comments.last}}
  4. Add a new action -> Edit Issue
    1. Choose Sharepoint Link as the Fields To Set
    2. In the empty Sharepoint Link field, enter {{Link}}

❗️Remember to save and publish your automation!

comments powered by Disqus