Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to combine {{triggerIssue}} & {{#changelog.status}}{{fromString}} for trigger's previous status?

Amelia Hernandez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 14, 2023

GOAL: Comment the previous & current status of a linked issue onto the original issue.

TICKET CONTEXT:

  • ISEC helpdesk tickets created whenever someone submits a ServiceDesk request for an ISEC review.
  • Tickets are created in the SECENG & OFFSEC projects for other teams. The ISEC review is not complete until all SECENG & OFFSEC tickets are resolved.
  • SECENG & OFFSEC tickets are automatically linked as "is part of" the ISEC tickets.

I want to comment something like "The SecEng portion of your review has gone from [previous status] to [current status]" on the ISEC ticket so the customer can see the status changes, even though they won't have view access to the full SECENG & OFFSEC tickets.

PROBLEM:

{{#changelog.triggerIssue.status}}{{fromString}} and {{toString}}{{/changelog.triggerIssue.status}} didn't work.

 


GLOBAL AUTO RULE SETUP:

  • Triggered when SECENG or OFFSEC ticket transitions to new status.
  • Conditions to ensure trigger issue has the "review" ticket linked to it.
  • SECENG BRANCH: For Linked issues - is part of
    • Condition to grab correct ISEC ticket
    • Comment on issue
  • OFFSEC BRANCH: "

autorulee.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 14, 2023

Hi @Amelia Hernandez -- Welcome to the Atlassian Community!

I recommend simplifying that expression, as shown in the documentation: https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html

Perhaps try this:

The SecEng portion of your review has gone from {{#changelog.status}}{{fromString}}{{/}} to {{#changelog.status}}{{toString}}{{/}}

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer