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.
Hi Shubha,
If you want two available transitions to be triggered then you need to add two post-functions each triggering one transition. That is because the Transition post-functions are designed to trigger only one transition at a time.
Regards,
Radhika
@Radhika Vijji _Innovalog_ , thanks for the prompt response. The fact is I have added 2 transitions triggered by 2 post functions on the SAME STATUS of parent issue, but only one seems to be getting triggered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shubha,
Could you please answer these questions?
Regards,
Radhika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Subha,
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.
Regards,
Radhika
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.