Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Template Field Description using Behaviours gives sometimes a popup when changing Issuetype Edited

R_ Dekker I'm New Here Dec 10, 2020


As many people I want to use a template (with panels) when creating an issue in the system field Description. After a long search on internet I found several solutions:  using javascript / 3th party software / customfields / behaviours.

- Javascript didn't work

- Custom fields I tried it but multi-line text does not have the same Wiki-render edit functions as the System field description has. Also I think this would mean I have to do a migration of the current content of the system field Description into the custom fields to not have multiple places where the information is available in an issue. Old versus New. So I tried this but skipped to another solution.

- 3th party software is my last option, but I rather not use it.

So now I use behaviours as described in

I have 3 behaviours linked to a Project / issuetype

one for a template for the issuetype Story

one for a template for the issuetype Bug

one for clearing the field for the other issuetypes.

The problem is that I sometimes get a popup warning field:

These fields have default values for this project and issue type combination. We have preserved the existing values in case you need them.


Jira popup.JPG

When creating an issue such as Story the Description field is filled correctly and when I change the issuetype to Bug the Description field is filled also correctly and when changing to another issuetype the description get cleared. That works great.

But now the problem :)

Depending on the value of the template I get the popup as shown above. In my first testcases I used for issuetype Story 

def defaultValue = """This is a story""".replaceAll(/    /, '')

and for issuetype Bug

def defaultValue = """This is a bug""".replaceAll(/    /, '')

When I changed the issuetype it works great. I get no popup, except when I changed the field Description and than changed the issuetype (behaviour as desired as you want to preserve data changed by the user when overwriting the field with a template).

But when I use a defaultValue with more than 1 line such as

def defaultValue = """aaaaaa bbbbb cccccc

dddd eeee ffff


hhhh""".replaceAll(/    /, '')

or for example when I use

def defaultValue = """{panel:title=This is a title}
Template here Template here Template here

{panel:title=This is another title}
Template here Template here Template here
{panel}""".replaceAll(/    /, '')

(This is the desired value as we want to use panels in the template)

I always get the popup when changing the issuetype even without changing the field Description. It looks like Jira thinks I altered the field Description even if I didn't. I tried many solutions like placing the value in one long line (no enters only spaces), using {empty line} and \\ for wiki render syntax, but I cannot get it to work.

The system field Description is configured to Wiki-render.

Does anybody knows the solution for this problem? What am I doing wrong?

Thanks for your input/reply!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

109 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you