It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automatic change in Transitions (Status) in JIRA Workflow

Gaurav Nawathey Jan 27, 2013

Does JIRA has the Functionality to automatically change the Status (Transition) of an Issue based on Post-Functions. I am aware, we can change the Resolution of Issues, but it does not allow to Change the Status of an issue.

Alternatively, is there any plugin which helps in changing the status of an issue; if not a post-function.

3 answers

3 votes
Nic Brough [Adaptavist] Community Leader Jan 27, 2013

I suspect this question is actually one about automation. This crops up irregularly because it's not obvious that Status (of an issue) is NOT a field, it is an indicator of position in the workflow.

Developers keep adding post-functions to Jira that say "in this case, change the status", without understanding that the point of a transition is to move from state A to state B and that post-functions run inside a transition, so subverting the transition end-point from the inside is asking for trouble.

Gaurav is steps ahead of most here, stating "cannot change status in transition". Technically, you can, but I've yet to see stable working code that does it (and I've spent a lot of time cleaning up the horrid messes made when people try it). So I think the answer here is either

  • Do what C.Faysal says and set up multiple transitions

Or

  • Use a listener to capture the event that the transition fires, and tell the listener to execute a second transition when it detects the right circumstances. Events are processed AFTER transition completion, so they're perfectly safe to trigger another transition.
Mark Love Mar 04, 2014

I'd like to have a rule along the lines of "If status has been 'Awiting Client' for 30 days or more then close". Can this be automated?

Nic Brough [Adaptavist] Community Leader Mar 04, 2014

Yup. Set up the workflow as above, then write a filter that says "status = awaiting client and updated < -30d", then use a jelly escalation script to trigger the close transition.

See https://confluence.atlassian.com/display/JIRA/Jelly+Escalation

Mark Love Mar 04, 2014

Thanks Nic - I've not yet tried Jelly scripts, but perhaps this is what will tip me over the edge.

Dipanwita Ghosh Oct 08, 2015

I think it is time now to update this info as Jelly script is becoming obsolete for the JIRA latest versions and the support for the earlier Jelly Scripts is going to be stopped as well.

Nic Brough [Adaptavist] Community Leader Oct 08, 2015

Jelly was removed a version ago, let alone 7. But we don't update answers - they're answers to questions, not documentation.

0 votes
C. Faysal Jan 27, 2013

hi gaurav,

a transition moves the issue to a different "status"

i wonder what the backgroud of your question is about...

https://confluence.atlassian.com/display/JIRA/Configuring+Workflow

i.e.

Step A (Status=Open): possible transitions are

  • "Start" links to "status = In Progress"
  • "Reject" links to "status = REJECTED"

of course postfuctions can update issue fields too

what exactly do you mean?

0 votes
Mark Love Mar 04, 2014

I'd like to have a rule along the lines of "If status has been 'Awiting Client' for 30 days or more then close". Can this be automated?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Statuspage

⭐️Would you recommend Statuspage? Leave a (honest!) review. ⭐️

Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site –  to help teams like yours make more informed decisions when choosing an inc...

32 views 2 2
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you