If a issue has been in the status of "completed", then add a new "sub-task" to it. The issue's status should automatically be changed to "inprogress". But now, it still in status of "completed".how to config this?
You can do as suggested by Nic, or you can write a script in the post function of create transition which validates that the current issue is a sub-task of project X and if it's parent is in state "complteted" then to transition the parent to "in-progress"
Thank you for reply . I have added a post function on create transition . The name of this function is "Transition parent issue" , but it doesn't work ,any suggestion??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How have you configured it? You must need to do some, as you need to tell it what transition to run, and youhaven't told us how you've configured it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Xin,
In the "Transition parent issue" postfunction provide the transition ID of workflow of parent which is from the status of "completed" to "In progress"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is my mistake , I forget to click "Publish Draft".Thank you for your support. And I can compare the status by using "parentIssue.get("status").getName() == "Completed"" , Is there a document I can see the property of the object? just like "issue" or "parentIssue" or "status",because when I want get some property from parentIssue, I don't know what the object parentIssue like , So I need this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
another question :
What I need is when create a sub-task for US which is Completed , I need the parent issue changed to "in progress".
now the parent issue can change to the "in progress" , but the parent of the parent issue can't be changed , the change is not Inheritance。
My configuraiton is :
I have two workflow , one for sub-task A , one for story B.
I add the "Transition parent issue" postfunction to A ,the transition is "Create"
I add the "Transition parent issue" postfunction to A ,the transition is "In Process"
the Conditional execution are all "parentIssue.get("status").getName() == "Completed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fix it , the relationship between issue and parent issue is not "parent" , is linkd , so we need to add a "Transition linked issues" post function and the "Conditional execution" is linkedIssue.get("status").getName() == "Completed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no "parent of a parent", Jira only has three layers - project, parent and child.
I'm guessing you're using the structure plugin or something like it - you'll need to write more code to go find this additional parent - the plain Jira API simply won't recognise it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fix it , the relationship between issue and parent issue is not "parent" , is linkd , so we need to add a "Transition linked issues" post function and the "Conditional execution" is linkedIssue.get("status").getName() == "Completed"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You probably need to find/write a "listener" that can pick up "issue created", read the new issue, check the parent issue matches the criteria and then tell the issue to go through the transition from completed to in-progress.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.