Automated work flow

I have designed a work flow that contains many steps: How could i assign different users to each step in order to get automated issue tracking for example:

 

Issue 1

First assigned to User 1 then User 1 flag it as Done, so it will be assigned directly to user 2 and this go through user 3 and 4 till reach finally to User 5 then it come up to me.

4 answers

1 vote

The most straightforward way is to use post-functions to change the assignee as the status changes.

You'll need to think about

  • how you decide who to assign it to
  • you'll probably need add-ons such as the JIRA Suite Utilities to do the assignee changes
  • a simple way to do it would be to have fields for "next assignee for status X", "next assignee for status Y", etc which you copy into assignee
  • might need something more complex, like the script runner, if you have complicated "who" logic
  • think about email - as this method will not send "issue assigned" events

 

I get to my Work FLow / Post function and i did not find anything about assign user to transition, i found only 

Set issue status to the linked status of the destination workflow step.

Add a comment to an issue if one is entered during a transition.

Update change history for an issue and store the issue in the database.

Re-index an issue to keep indexes in sync with the database.

Fire a Generic Event event that can be processed by the listeners.

Hi Ahmed, as Nic mentioned you could try to install JIRA Suite Utilities Plugin to your instance. It offers much more post functionality.

That's the current list of post-functions on the transition.  Edit the workflow, go to the transition and click "add".  You'll find you can add things like "set field". 

But you'll probably want something more complex than "set assignee to fixed person", and as Mario says, the JSU adds a load of options to the list of post-functions you could add.

0 vote
Joe Pitt Community Champion Mar 01, 2016

Remember, if you are assigning to users you will need to update the workflow when (and it will happen) they leave the company or assignment they currently have. A safer way would be to create project roles and assign just the one person to the role and then assign the issue to that role. See https://answers.atlassian.com/questions/240849

Adding into what Nic and Mario have said here, I am thinking about how the user for each step can be defined without hard-coding into the post-function of the step.

I'm not sure if JIRA has any other field than Components that allows mapping a value to a user so that we can use in this situation.

So I believe if you haven't used Components as yet, you can add value representing each step into Components, along with a user (to be Component lead). Then in the post function of each step, you can just need to set the Component to the corresponding step and Assignee = Automatic. JIRA will assign the Assignee to the corresponding Component Lead you have defined..

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted yesterday in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

38 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you