Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JSWCLOUD-21550

Automation for Jira : Link issue when an issue key is commented

XMLWordPrintable

      Issue Summary

      When an issue is commented with another issue key, when trying to link the commented issue with the issue where the comment is added, it does not work. Basically, the smart value : 

      comment.body.match(“(AUT-\d+)”) does not work. 

      Steps to Reproduce

      1. Create a rule similar to below : 

      Expected Results

      • Read the comment and pick only the issue key that is in the comment. 
      • Link the issue in the comment to the commented issue.  

      Actual Results

      Workaround

      Workaround is to : 

      • Use the following regular expression for the Link issue step:
        {{comment.body.match("([A-Z0-9]+-\d+)")}}
        
      • Not add any other text in the comment except the issue key
      • The issue key should not be a hyperlink and it should be a plain text. Eg : XYZ-123 
      • The link issue field should contain a smart value as { {comment.body}

        }

              Unassigned Unassigned
              c1c38b0b1b95 Priyadharshini CS (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: