Forums

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

how do I get component selected in issue edit screen

Omprakash Thamsetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2019

How do I get component selected by user on edit/transition screen in script listener. I needs to get selected components on screen?

Thanks

1 answer

0 votes
Yury Lubanets
Contributor
August 8, 2019

Hi @Omprakash Thamsetty 

In a Scriptrunner's script listener you can do the following

import com.atlassian.jira.component.ComponentAccessor

def components = event.issue.components // collection of ProjectComponent.class
def values = event.issue.components*.name // List of compoment's names

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events