Forums

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

Jira Automation for Updating Description without Replacing Form Text

Pfortmiller, Lee
Contributor
July 14, 2022

Hi all,

I've created a simple Jira Automation as follows:

When: Issue created

If: Issue matches JQL (type = story)

Then: Edit issue fields (Description)

The Description field is given some standard template text I need to be automatically added to the field.

This solution, for the most part, works great.  My only concern is that when using Create button and its associated Create Issue popup form, anything that is entered for the Description gets replaced by the template text.  I would prefer that the template text get appended to whatever I add to the Description field within the popup form. 

I can attempt to train my users not to enter anything in Description field until after it is first saved, but I could easily see someone spending a lot of time entering a lot of text only to have it replaced.

Thanks

Automation.pngCreate Issue Form.png

2 answers

2 accepted

10 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 14, 2022

Hi Lee - Welcome to the Atlassian Community!

That's a pretty easy fix. 

Just add this to your existing rule at the very top of the Description text you are placing in the field:

{{triggerissue.Description}}

That will keep the text that the user entered on create and then will add your part after it. Be sure to leave all of your text in there starting on a line or two below it. 

Pfortmiller, Lee
Contributor
July 25, 2022

This worked!  Thanks, John!  

Like # people like this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 25, 2022

Great!

6 votes
Answer accepted
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.
July 14, 2022

Hi @Pfortmiller, Lee -- Welcome to the Atlassian Community!

Automation rules run after the trigger (issue created), so if you want a template *before* you generally need either an addon from the marketplace or to set the field default for all.

To add after with a rule, you can do that by referencing the description smart value when you make the edit.  For example:

  • trigger: issue created
  • action: re-fetch (This is good to add for a use case like yours because the trigger for Issue Created can fire before all of the data is available.)
  • condition: issue type is story
  • action: edit the issue description
{{issue.description}}

Here is my template text!

 

Kind regards,
Bill

Pfortmiller, Lee
Contributor
July 25, 2022

I configured to include the re-fetch to be safe.  This worked!  Thanks, Bill!

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events