Forums

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

Can I set the component Lead to a read only field within an issue?

Kathleen Jacobs
Contributor
June 7, 2013

Assignee will change throughout the workflow, but would like the componenet lead known throughout this processes on the issue.

3 answers

1 accepted

3 votes
Answer accepted
Patrick Li
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.
June 7, 2013

You can use the Script Runner plugin (below), which has a script custom field type. Then all you have to do is create a simple script that will show the component's lead. Also, you need to keep in mind that an issue can have more than one component.

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

1 vote
Bhushan Nagaraj
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.
June 7, 2013

Hi kjacobs,

You can create a custom field to display that information.

The plugin also provides a components issue tab panel to display components related to an issue along with its description and lead.

https://marketplace.atlassian.com/plugins/com.stygian.jira.plugins.projectroles

Cheers

Bhushan

Kathleen Jacobs
Contributor
June 8, 2013

What Custom Field would I use?

0 votes
Kathleen Jacobs
Contributor
June 10, 2013

Using Script Runner and creating a Script Field:

import com.atlassian.jira.ComponentManager
 
def componentManager = ComponentManager.getInstance()
 
def leads = issue.componentObjects.toList()
if (leads) {
    def lead = leads?.first()?.lead
    if (lead) {
        issue.getComponentObjects().getAt(0)?.getLead()
    }
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events