Forums

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

Resetting a prefilled field when changing the issue type

Alexander B.
Contributor
December 12, 2023

Hi all,

sorry, I have not been able to find any information on this so far, hence the following question:

I have created a behaviour with Scriptrunner, which pre-fills the field "Description" with a text for a certain project, for a certain issue type.

In Jira Cloud, as soon as I call up the "Create" button in the header, the correctly filled "Description" field is prefilled for this ticket type.

However, if I change the issue type in this window, the field REMAINS prefilled and is not cleared.

This was solved with Jira Server by entering the script in the "Initialiser" area. However, this does not exist in Jira Cloud. I have tried to add an issue type check to the script, but without success.

Question: How can I ensure that the "Description" field is only pre-filled for a specific issue type and is reset if the user selects a different issue type?

Thanks for your support!

1 answer

1 vote
Himanshi
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 12, 2023

Hello @Alexander B_ , 

Welcome to the community!

I am not sure whether script runner is capable to cater such use case. 

However, with my experience, I saw a couple of add-on that cater template for issue type . 

For example: Issue Template for Jira

I am sharing a list of add-on that you might want to explore here

Hope it will help. 

Alexander B.
Contributor
December 13, 2023

Hi @Himanshi,

with Scriptrunner for Jira Server this was possible without any problems. With Jira Cloud there seems to be a step backwards here. I'm sure one of the addons will solve the problem, I just would have liked it better if I could have solved it with Scriptrunner (again).

I think the next step will be to create separate description fields for the different ticket types - which is of course rather unfortunate for JQL searches.

Thank you,
Alexander

Josh Moore
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!
February 23, 2024

Hi @Alexander B_ 

Did you ever find a fix for this?  We recently migrated from Server and have noticed the same issue.  We have a Behaviour to populate the description field for certain issue types, but it does not get reset if the issue type changes like it did in server.

I used the example template they provide as well.

Alexander B.
Contributor
February 25, 2024

Sorry, unfortunately not.

George Gouvakis
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!
March 19, 2025

I'm guessing there is still no fix for this? Experiencing the exact same issue. :(

Suggest an answer

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

Atlassian Community Events