Forums

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

Behaviours for Description field - automatic table shown

Helen Ahlberg
Contributor
September 3, 2019

 

How can I get this in my description - please provide me with correct coding to be placed i Behaviours in Description in one project..

table in description.png

1 answer

1 accepted

1 vote
Answer accepted
Antoine Berry
Community Champion
September 3, 2019

Hi @Helen Ahlberg ,

Please try this script snippet : 

import groovy.transform.BaseScript
import com.onresolve.jira.groovy.user.FieldBehaviours

@BaseScript FieldBehaviours fieldBehaviours

def desc = getFieldById("description")

def table = table = """Please enter your details in the below table -
||Application||Parent Folder||Name||Status||Order Date||Action||
| | | | | | |
Please provide additional information. Fields marked with {color:red}*{color} are REQUIRED in order to process your request.
||Provision Server||Restore from Backup||Server Decommission||Change to Existing Server||
|*Size*|{color:red}*{color}| | |
|*RAM*|{color:red}*{color}| | |
And so on..."""

desc.setFormValue(table)

Antoine

Helen Ahlberg
Contributor
September 3, 2019

Hi

Thansk for very fast reply.

I have entered your suggestion in the Behaviours under Create initialiser and then mapped this to correct project and issuetypes -> IT WORKS!!!

Now I have to adjust the code so that I get the correct info in place.

Thanks - You have saved my day :)

regards,

Helen

Antoine Berry
Community Champion
September 3, 2019

You are very welcome ! 

If this answer helped you, marked it accepted ot help other users find it. :)

Joel Batac
Contributor
August 23, 2022

@Antoine Berry  -- how do you have bold text in between tables? Something line

 

Bold text 1

Table 1 (created above)

Bold text 2

Table 2( another table)

Joel Batac
Contributor
August 23, 2022

Suggest an answer

Log in or Sign up to answer