Forums

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

How to define a header in Jira

Sharad Bangera
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!
January 6, 2023

Hello,

 

I want to define a h2. Bigger heading in my script for value "Current Status:", "Proposed Solution:" "Acceptance Criteria:"

Can u plz guide me how to do it.

Here is my script which i m using 

 

def formField = getFieldById(getFieldChanged())
def desc = getFieldById("description")
desc.setHelpText("For template description, click " + "<a href=\" https://confluence.energy.svc.dbgcloud.io/display/M7T/Issue+handling#Issuehandling-description_template\">link</a>")

def defaultValue = """\

Current Status:

 

Proposed Solution:

 

Acceptance Criteria:
""".stripIndent()

if (!desc.formValue) {
desc.setFormValue(defaultValue)
}


h2. Bigger heading

1 answer

0 votes
Vikrant Yadav
Community Champion
January 6, 2023

Hi @Sharad Bangera Welcome to Atlassian Community!

For making h2 heading, try to add h2.

https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=headings

def defaultValue = """\

h2.Current Status:

 

h2.Proposed Solution:

 

h2.Acceptance Criteria:
""".stripIndent()
Sharath Moolya January 8, 2023

Thanks Vikrant

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
January 11, 2023

Hi @Sharath Moolya@Sharad Bangera Kindly Accept the Solution, if it works for you. 
It helps other user looking for same solution. 

Thanks

Vikrant Yadav

Suggest an answer

Log in or Sign up to answer