Scriptrunner Webpanel - Customfield

Torsten Macht July 4, 2018
Hi. I've using scriptrunner to add some web panels on the right side in issue dialog. There I provide some additional information to my agents. This information is stored in customfields. I render the text in the panel. But better is when there is the native customfield.

Is it possible to get the customfield with his inline edit in a webpanel? How can i manage this.

My other question is, why are my nFeed key values are rendered not in the webpanel after the first load. I have to click on a transition than the values where rendered correct. Is there anyone who uses nFeed values at the right view issue context?

In which case jira refresh the view screen and fetch new data?

Best regards

Torsten

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Torsten Macht July 24, 2019

Hello. Yes since a few month we've a solution.

We use script fragments with import of nfeed FiedDisplayService

import com.valiantys.nfeed.api.IFieldDisplayService;

@WithPlugin("com.valiantys.jira.plugins.SQLFeed")
@PluginModule
IFieldDisplayService fieldDisplayService;

def issue = context.issue as Issue

String service = "";

//Get the Display or Key with the fieldDisplayService

Object displayResult = fieldDisplayService.getDisplayResult(issue.getKey(), "customfield_10619");
if (displayResult != null) {
    service = displayResult.getDisplay();
}

 best regards

 

Torsten

0 votes
Daphnis Hessling July 30, 2018

Hi Torsten,

Sorry, but I can't help you with your problem. But I am very interested in how you managed to display nFeed values in a web panel on the right hand side.
We are trying to achieve the same thing, but it just won't work.

Any help would be appreciated.

Regards,
Daphnis

TAGS
AUG Leaders

Atlassian Community Events