We have multiple sub-tasks for a parent issue.
In the DONE transition of sub-task we trigger a USER HIDDEN transition on PARENT issue and update a certain field in the PARENT Issue.
The condition to trigger the transition in the parent is that all the sub-tasks must be in DONE status.
The above has been working fine until now.
Now we have an additional requirement. When one of the critical fields in sub-task is SET, we need to update corresponding field in the parent issue. This should happen for the FIRST SUBTASK for which the field gets SET. The parent issue field is updated and also fires an event to send an email notification to certain users.
We tried adding another USER HIDDEN transition on PARENT issue for this in the same status.
This works fine, but the ABOVE older transition stopped working.
We noticed the statement "only the first applicable transition" is triggered on the parent issue.
But we want to trigger both thee transitions. Could you please suggest a workaround.
Could you please answer these questions?
@Radhika Vijji _Innovalog_ thanks for your recommendation of using copy field value. That gave me the right idea to fix this issue. Now it seems to be working fine.
Although, i have additional question.
When i trigger a transition from SUBTASK (A) on the PARENT (P), is there some way i can access the CALLING ISSUE's fields (A's fields) in the post function of the PARENT ?
Similar to issue. issuetype() or originalissue.issuetype() something like sourceissue, callingissue or anything ?
Do you mean using the "Transition parent/related issues" post-function? Yes, you can access the Subtasks' fields while triggering a transition on the parent issue. I suppose you are on Jira Server. Please confirm. And also please present me with the actual use case to help you better.
For example, when you are triggering a transition on the parent from the subtask using the "Transition parent issue" post-function and you want to set the Due date of the parent to that of the subtask during the transition, then in the post-function configuration under the "Set fields of issue" section. select the Due date field and then select "Copy field value from current issue" option. This will copy the Due date from the subtask in context to the parent.
It’s very important to have access to the workflow process from anywhere. Especially if you manage the work of others. There is no difference whether you’re out of office, or drive a ca...
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