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!
Hey @Alvin
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.
OR
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) {
desc.setFormValue(defaultValue)
}
// 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.
Did this answer your question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.