It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi, in my workflow, there are multiple statuses going to On Hold.
How can this be achieved?
Thank you!
Hi.
I reused transition containing the post function that creates the subtasks while moving from On Hold to Preparation and Analysis.While doing so, the subtasks are getting created twice. I would like to know if there could be a condition passed on as while creating the subtask to check if there is an existing subtask already.
Thank you.
Same answer - you'll need to replace those post-functions with others with more code in them, code that can detect the existing sub-tasks and exit before creating the duplicates.
Or duplicate the transition and have one that has conditions saying "only if no subtasks exist" and the other one with a condition of "subtasks must exist". Again, you'll need a bit of code for them
I am kind of stuck at this place. Could you guide me on what code has to be used to carry it out?
I am using the following code but the sub tasks aren't getting created.
import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.issuetype.IssueType if (issue.issueTypeObject.name == 'iType') { IssueType issueType = ComponentAccessor.getConstantsManager().getIssueTypeObject("5"); //Since my subtask is Sub-Task for(subTask in issue.getSubTaskObjects()) { if(subTask.getIssueTypeObject().equals(issueType)) { return false; } } return true; }
try to add 2 transitions for On Hold to Preparation and Analysis having mutually exclusive conditions based on sub-tasks count.
this way user will see only one of the two transitions.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreHey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.