Forums

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

Assigning issue based on ticket type

Gagandeep Singh
February 8, 2019

Here is the scenario

I have a project where I have two workflows 

Workflow A if ticket type is story and Workflow B when ticket type is Bug.

On create event we want that if a ticket being created is of type Story then ticket gets assigned to user 'John' and if a ticket being created is of type Bug then ticket gets assigned to user 'Steve' 

 

I have already set post functions for create transition for both workflows

 

for workflow A it says in the post function - The Assignee of the issue will be set to John

for workflow B it says in the post function - The Assignee of the issue will be set to Steve

 

But when issues are getting created both of type story or bug they are getting unassigned and not getting assigned to the respective users based on the workflow

 

what I noticed is that this is happening because on the project setting page there is a default assignee set to unassigned 

How do I make Jira to ignore this default assignee setting and take the assignee from the workflow based on ticket type during create?

 

Any help will be greatly appreciated 

2 answers

1 accepted

0 votes
Answer accepted
Gagandeep Singh
February 11, 2019

Any help here will be greatly appreciated?

0 votes
Shwetha Suvarna
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2019

Hi Gagandeep,

Default assignee field overrides the assignees updated in the post function. If the default assignee field is not of high importance, I would suggest you set the value to unassigned.

 

Best regards,

 

Shwetha

Atlassian Cloud Support 

Gagandeep Singh
February 8, 2019

I already have default assignee set to unassigned  in the project settings.

and because of this setting post functions are not firing and all the newly created tickets (both story & Bug type ) have assignee getting set to unassigned.

Shwetha Suvarna
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2019

Hi Gagandeep,

Please make sure to add the post function to the create issue status and then publish the workflow.

Also if possible, it would be helpful if you could provide the screenshot of the post function to check the configuration.

Thanks

Shwetha

Gagandeep Singh
February 8, 2019

Hi Shwetha

Here are the three screenshots 

  1.  from the project details page where default assignee is unassigned
  2. post function on create transition for bug type workflow
  3. screen shot that workflow  for bug type is not in draft but already published.

 

Hope this helps

already published.jpgpost function on create for bug type workflow.jpgDetails page.jpg

Daniele Gianetti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2021

Hello,

I have the VERY same problem a series of post functions which all works fine but not the "Update Issue Field" when setting an Assignee and it actually break the whole flow as none of the other post functions get successfully completed. The user I set as assignee is a correct one, and it's presented in the suggested field but still...

I tried both with project setting having the default assignee to Unassigned as well as to lead developer.

Any help would be appreciated!

Daniele

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events