Good day everyone, hope this post finds you safe and sound.
As per subject, the objective is to pre-load the table inside the Description (JIRA System Field)
Not sure if this is achievable using GUI (if yes, great), hence the question on ScriptRunner Behaviour.
We followed this, but could not make it work. We also saw, the table var is defined two times, we followed it blindly, but the Script Editor is showing error.
When we defined it once, no error is showing, but the table is not loading on the Visual tab as desired, but when we switched it to Text tab, the text for the table is the same as when we insert the tab manually.
Here is the desired table that we want to pre-load when a user is creating an issue
Here is the Text tab.
We got confused when this post stated need to use Markdown, we tried that as well, but did not achieve it either.
This is the code in our behaviour.
import groovy.transform.BaseScript
import com.onresolve.jira.groovy.user.FieldBehaviours
@BaseScript FieldBehaviours fieldBehaviours
def desc = getFieldById("description")
def table = """Please enter your details in the below table -
||Heading 1|||Heading 2|||Heading 3|||Heading 4|||Heading 5|||Heading 6||
| | | | | | |
"""
desc.setFormValue(table)
Any pointers will be helpful!
Version for JIRA Project Management Software: 8.13.8
By using HTML, we got what we need.
Hopefully this helps others who faced similar issue!
@Kamal Iqlaas Ismail can you share what your HTML looked like?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Caroline Hall , appreciate your response. Actually, we use MD again, as when we were developing, it was in staging environment, But when we deployed to production, everything work wonders!
Here is our code (screenshot)
Do note that there indentation for row is not needed.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kamal Iqlaas Ismail script looks fine except for table variable definition where there are additional | characters in between header.
Please try below.
def table = " " " Please enter your details in the below table -
|| Heading 1|| Heading 2 || Heading 3 || Heading 4 || Heading 5 || Heading 6 ||
| | | | | | |
" " "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apparently, we need to use HTML.
Appreciate your response though!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you please help with that code snippet?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.