Forums

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

Scriptrunner Custom Field Issue Template configure fields shown

Florian Decker
August 19, 2022

Hi,

i have a scriptrunner custom script field which collects some specific Issues and renders them, using the Issue(s) Template.

This is working well and renders the Issuetype Icon, the Issue Key as a Link, the Summary, the Priority Icon and the Status, as expected.

 

I would like it to also render the resolution. Is this possible to configure somehow?

 

I am aware, that i could just write custom HTML Code, however that feels not the way to go, when there already exists an Issue renderer.

 

Thank you very much for your time!

 

Best Regards,

Florian

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Michel Tremblay [Adaptavist]
January 31, 2018

As I understand it, F1 and F2 are 2 NFeed field.
F2 is set with automatically select the value when there is only 1 option.
So if you select F1, then f2 get automatically selected and so it works. 
But when you're setting F1 from scripts, it doesn't update F2 because NFeed UI javascript doesn't trigger to select the value it could have selected through the UI. 
And this is a normal behaviour as there is no UI activated for it and thus the JS can't run.

Your solution would be to run the same sql select that you have in your nfeed to set F2 when you set F1, but in your script where you do set F1. 

Triggering an Update or anything that is not using the UI won't put any value in F2.

TAGS
AUG Leaders

Atlassian Community Events