Forums

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

Assignee is not updating when I change a component in the issue view

Siva TN March 11, 2019

Hello,

I have created three components and set the default assignee to "Component Lead" to that components. 

After done all the above said steps, I have created an issue and choose one of the component and also selected the "Automatic" for Assignee field. Now, I can see the component Lead has automatically assigned to the issue. 

But, the problem I'm facing is, the assignee is not updating when I change the component in the issue view. I have also removed the component from the issue but still the assignee is there. 

Hope you have got my points. 

Could anyone please guide me?

1 answer

1 accepted

3 votes
Answer accepted
Alexey Matveev
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.
March 11, 2019

Hello,

Assigning the default assignee for a component works only for the create issue event. It does not work for the Update event.

Siva TN March 11, 2019

Thanks @Alexey Matveev Can you please tell me what are all the ways to set the assignee automatically?

Alexey Matveev
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.
March 11, 2019

You could do it out of the box with the Jira Service Desk application. You could use the Automation feature of this application.

If you do not have Jira Service Desk, then you would need a plugin. For example, you could use the Power Scripts or ScriptRunner plugin.

If you want to use the Power Scripts plugin, then you could create a listener for the Update Issue event with a code like this:

if (size(components) > 0 ) {

   assignee = getProjectComponentLead(key, components[0]);

}

You can read more about listeners here:

https://confluence.cprime.io/pages/viewpage.action?pageId=6558205

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events