Forums

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

How do I change Jira Software Cloud ticket's status on Post Function

Michael Cohen November 5, 2018

Hi,

 

I have created a post function rule that on certain condition creates a sub task (using JMWE add-on), the sub task that was created is getting the status of a new ticket, I would like that this sub task will get the status of the parent. HOW DO I DO THAT?

I has in mind to create another post function that on new ticket and if the ticket type = sub task then change status to "what ever" but I can't find a way to do it. I am opened for other suggestions.

 

Please help.

 

 

Thanks,

Michael

2 answers

0 votes
Josh Steckler
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.
November 5, 2018

Hi,

That's not directly possible. All new issues, including sub tasks, always take the first status in the workflow.

The only way around this would be to use some kind of automation add-on to walk the issue through the appropriate transitions to get to the right status you're looking for.

This is because Status is not an editable field, and cannot be specified as such. Its a construct of the workflow and the workflow always starts at the top.

Michael Cohen November 5, 2018

Thanks (bad news though)

Josh Steckler
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.
November 5, 2018

Not familiar with JMWE, but I think there are possibly things you can do with Suite Utilities for Jira (an add-on I highly recommend) or Script runner as @Tinker Fadoua mentioned.

David Fischer
Community Champion
November 5, 2018

No app will allow you to change the issue status without transitioning the issue, especially on Jira Cloud. 

As Josh mentioned, you need to transition the issue to its desired status. For that, you can use the Transition Issue post function on the Create transition of subtasks to walk the subtask through the réquipée transitions to the desired status, using the conditional execution feature of the post function to only run the required transitions. You could even create hidden transitions that would go from the initial status directly to each possible status, so that you’ll need to transition the subtask only once. 

Tinker Fadoua
Community Champion
November 5, 2018

@David Fischerthe user is asking for the change at the sub-task level not the parent. I was able to make the sub-task go to in-progress automatically when the parent ticket is approved using "Create on transition" add-on.

Best,

Michael Cohen November 5, 2018

"Create on transition" add-on is not supported by cloud. so it appears there is no solution other than change the status manually. 

 

Thanks anyway

Tinker Fadoua
Community Champion
November 5, 2018

@Michael Cohenunfortunately they don't have it for Cloud which I checked and told you earlier. Try the ScritpRunner plugin.

0 votes
Tinker Fadoua
Community Champion
November 5, 2018

@Michael Cohen

Are you a cloud or server user? if server what version?

Best,

Michael Cohen November 5, 2018

Cloud

Tinker Fadoua
Community Champion
November 5, 2018

@Michael CohenI know for fact that JIRA out of the box doesn't have lot of post functions. I just checked the one add-on that has lot of features is "Create on Transition" from Bob Swift, unfortunately is not available for Cloud users.

May be ScriptRunner which is available for Cloud users.

Michael Cohen November 5, 2018

Thanks anyway 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events