Forums

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

Can text be automatically inserted in a text field, in an automation or transition post action?

Phil Bustin
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.
March 28, 2023

Without using ScriptRunner or other app, I would like to be able to automatically insert text, including a couple of smart values, at the beginning of paragraph Field A, as follows:

*** Begin Additional Task to {{issue.[Custom Field].id}} {{now}} ***

[Paste PVCS modules from Show History > Version Label here.]

*** End Additional Task to {{issue.[Custom Field].id}} {{now}} ***

[blank line]

Perhaps the 3 lines above can be Field B, and I can concatenate Field B and Field A to Field C, and copy Field C to Field A?

 

1 answer

1 accepted

0 votes
Answer accepted
Darryl Lee
Community Champion
March 29, 2023

Hi @Phil Bustin - you should be able to do this pretty easily with the Edit issue action:

Screen Shot 2023-03-28 at 11.59.27 PM.png

I would advise you to use something like {{now.mediumDateTime}} or some other format so that your dates aren't formatted like this:

*** Begin Additional Task to Critical 2023-03-29T06:59:03.9+0000 ***

[Paste PVCS modules from Show History > Version Label here.]

*** End Additional Task to Upgrade 2023-03-29T06:59:03.9+0000 ***

This is the plan to rollback

(So that's actual output from my test. The original text of the Backout plan field was "This is the plan to rollback". After running the automation, you can see it prepended values from a few other custom fields, along with the poorly formatted date.)

Phil Bustin
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.
March 29, 2023

Thanks; this worked; in fact, I had already tried it before I read your answer.  I will explore 'More options'.

The one element I wish I had is the ability to edit a field before a transition.  Because that can't be done in Jira Software, I have a separate question posted on whether I can set a paragraph field default with imbedded smart values; that hasn't worked for me so far.

Like • Darryl Lee likes this
Phil Bustin
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.
March 29, 2023 edited

[I deleted this reply--it was meant for a different posted question]

Phil Bustin
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.
March 29, 2023

Update on the separate post for setting the default value of the field: A solution was proposed that worked--setting the value upon creation in an automation.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events