Forums

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

Does Scriptrunner Scripted Field support rendering HTML or clickable hyperlinks in cloud?

Sambhav Swain May 29, 2023

Using the help of Scripted-field I wish to render an issuekey.
When the scripted field is available with the issuekey.
User should be able to click on that issuekey- hyperlink from the current screen only.

2 answers

1 vote
Sambhav Swain June 29, 2023

It is not possible to create Scripted Fields to support HTML Template or clickable hyperlinks in inside ScriptRunner for Jira Cloud.

Return Types supported - https://docs.adaptavist.com/sr4jc/latest/features/scripted-fields#id-.ScriptedFieldsvCurrent-returntypes

Andrei Cuzuioc _ScriptRunner_
Contributor
August 23, 2023

Hi @Sambhav Swain 

This is now possible with ScriptRunner. This week we've released support for Rich Text Scripted Fields that can be configured using the Atlassian Document Format.

Here's a link to the documentation: https://docs.adaptavist.com/sr4jc/latest/features/scripted-fields#return-types

 

Best regards,

Andrei
Product Marketing Manager, ScriptRunner for Jira

0 votes
Sachin Dhamale
Community Champion
May 29, 2023

@Sambhav Swain ,

 

Welcome to Atlassian Comminity

 

Can you try http://groovy-lang.org/processing-xml.html#_markupbuilder  

 

xml.table(id: "scriptField") {
tr {
th("Key")
th("Summary")
th("Status")
}
results.getIssues().each { documentIssue ->
def issue_i = issueManager.getIssueObject(documentIssue.id )

def ikey = issue_i.key;
tr {
td{
a(href: "/browse/$ikey") ikey
}
td(issue_i.summary.toString())
td(issue_i.status.getName())
}
}
}

 

Thanks,
Sachin

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events