Forums

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

This parent issue ends before its child issues are scheduled to complete in Roadmap

Jatuporn
October 24, 2021

Hi,

 

 I have found a warning msg "This parent issue ends before its child issues are scheduled to complete." appear in all epic timelines in the roadmap. Not so sure how to make it gone.

 

Thank you.Screen Shot 2564-10-25 at 12.30.58.png

1 answer

1 vote
Deleted user
April 17, 2017

@Thilo Fester

Well you are almost there. I can give you a small example with a parameter of say project_key

The factory class will look something like :

public class FunctionFactoryTest extends AbstractWorkflowPluginFactory implements WorkflowPluginFunctionFactory{

 private static final String PROJECT_KEY = "project_key";
 
 @Override
 protected void getVelocityParamsForEdit(Map velocityParams, AbstractDescriptor inDescriptor) {
  FunctionDescriptor descriptor = (FunctionDescriptor) inDescriptor;
  
  String currentProjectKey = (String) descriptor.getArgs().get(PROJECT_KEY);
     velocityParams.put(PROJECT_KEY, currentProjectKey);
 }
 
 @Override
 protected void getVelocityParamsForInput(Map velocityParams) {
     velocityParams.put(PROJECT_KEY, "");
 }
 
 @Override
 protected void getVelocityParamsForView(Map velocityParams, AbstractDescriptor inDescriptor) {
  FunctionDescriptor descriptor = (FunctionDescriptor) inDescriptor;
  
     velocityParams.put(PROJECT_KEY, descriptor.getArgs().get(PROJECT_KEY));
 }

 public Map getDescriptorParams(Map conditionParams) {
  Map<String, String> params = new HashMap<String, String>();
  params.put(PROJECT_KEY, extractSingleParam(conditionParams, PROJECT_KEY));
     return params;
 }
}

The execute function can be used to get the project value like this:

@Override
 public void execute(Map transientVars, Map args, PropertySet ps) throws WorkflowException {
  String projectKey = (String) args.get("project_key"); 
  }

and then you can form the velocity files to render the value easily from this class using the variable names correctly as given in the map.

<input type="text" name="project_key" value="$project_key"/>

A more detailed explanation with working example can be found from this link by Jtricks. workflow-post-function implementation

Thilo Fester
April 19, 2017

Thanks Satyam. I found out I forgot to publish my workflow draft m/. Thanks for your support anyway.

Suggest an answer

Log in or Sign up to answer