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

Create-Issue (section) on Script Fragment

Hi All,

I'm trying to show an info message on Create Issue Screen using Script Fragment by Scriptrunner. Can someone lead me an example on how to do it? I didn't see anything on the Scriptrunner forum, I already enable web profiling but I didn't see any Panel location on Create Issue Screen. Thanks!

1 answer

0 votes

Hey @Alvin Parreno

There is no panel location possible on the create issue screen. 

Have you thought about possibly adding an Info message to a specific field? Say the summary? You can use HTML to make the text below different sizes and color. 

Screen Shot 2019-02-07 at 5.32.27 PM.png



Are you looking for something like a behaviour to fill out the description with info field upon the creation of ticket? This behaviour below will set the description field to have whatever info/text you want to display there. 

* Code to be placed as an initializer function

// Get a pointer to the description field
def desc = getFieldById("description")

// Get a pointer to the issue type field and get its value
def issueType = getFieldById("issuetype")
def issueTypeVal = issueType.getValue()

// If the issue type equals issuetype ID
if (issueTypeVal == ****) {

def defaultValue = """
h5.Example Text:
h5.Example Text:
h5.Example Text (opt.):
""".replaceAll(/ /, '')

if (!underlyingIssue?.description) {
// If any other issue type ID is returned set the description to a blank value
} else if (issueTypeVal != ****) {
desc.setFormValue(" ")

 Hope this helps! 

Let me know if you have any other questions. 

@Alvin Parreno  

Did this answer your question? 

Hi @Brittany Wispell ,

I need to have a button or link that will redirects the user to servicedesk when he/she clicks the link/button.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Portfolio for Jira

Program managers, we need your help! We want to learn about how you plan work for a team of teams

Hi community members, My name is Erika and I’m a product manager at Atlassian. We’re currently investigating how teams are planning work at the program level. We understand that every team in a tea...

145 views 0 5
Join discussion

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