Forums

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

Looking for a field that instantly shows

Charlie Misonne
Community Champion
January 11, 2024

Hi Community!

I am looking for something very specific and I'm quite sure it can not be done.

On the create screen of a Jira issue I have a couple of fields. Example:

  • Environment
  • Target date

I need a text area field or some kind of read-only section with a template that is automatically filled in. When changing one of the fields above the generated text should change instantly while typing. Simplistic example:

We plan an maintenance window for the application on the <environment> on <target date>

When the issue is created this text will be automatically added as a comment for the request participants on the portal. The idea is that the agent can review the text that will be generated.

My workaround:

If this can not be done I will need an automation rule that generates the text after creation. And to add the text as comment the agent has to copy-paste the text if he is happy with the result or I can add a manual trigger to automated the comment creation.
It is important that the comment is not added automaticallly, it always needs a review from the agent.

If you have better ideas let me know! :-)

1 answer

0 votes
Graham Twine
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.
January 11, 2024

Hello @Charlie Misonne ,

 

I suspect you may not have Scriptrunner available.

The only other solution I am aware of is using a Scriptrunner behavior.

 

1. Add a field to the create screen.

2. Make it read only in the init script

3. When the field that controls the read only field, changes update the field.

Graham Twine
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.
January 11, 2024

If html is enabled in field descriptions some javascript can accomplish this as well.

This has some security considerations if the instance is exposed to the internet it can be dangerous, you would need to evaluate your environment

Suggest an answer

Log in or Sign up to answer