Transition epic by transition of issue in epic using jjupin sil

I would like to try an accomplish two things.

  1. Use a post function jjupin sil script to copy the information in a custom field from an issue in an epic, and insert it into a custom field of the epic the issue is "under" (I have successfully been able to do this from a subtask to a parent by following some JJUPIN tutorials)
  2. Use a post function jjupin sil script to transition the epic forward in it's workflow, based on the transition of an issue that is "under" the epic (I have also been able to do this from a subtask to parent)

There are great tutorials to help a novice like me in the subtask/parent relationshitp, but due to subtasks not being able to be used in Sprint planning I'd like to use standard issue types and have then update the epic they are associated with, using post functions in the workflow.

2 answers

Hi Brian,

  1. I'm guessing that you have used the parent predefined variable to do that from subtask to parent. You can get the CF value from another issue by using the issue key and the CF name/id, like this:

    number val = DEMO-1.SomeNumericCF; // get the value

    The rest of your task should be simple using this hint. You can find more information about variable resolution here, it's a valuable resource for novices, you will learn how to get and set CF values in seconds:

    http://confluence.kepler-rominfo.com/display/SIL30/Variable+Resolution

     

  2. You can obtain the epic current status using the above hint. If you know the next transition to follow, you can use the autotransition routine to move forward in the workflow.

 

If you need additional guidance, simply comment on my answer or send us an email, we're eager to help.

 

Happy SIL coding!

Silviu

Hello Silviu,

I am in trouble to resolve the linked issue parent-child structure auto transition please help me how do i resolve this problem

My SIL post function :-

string sk;
bool alldesign = true;
for (sk in linkedIssues(parent)) {
if (%sk%.status != "Design Completed" && sk != key) {
alldesign = false;
}
}
if(alldesign) {
autotransition(3, parent);
}

I have two different issue types in one project where isuue type "Story Task" is parent and issue type "Task" as child i put the post fuction in Transition of child workflow issue type "Task"

But its not changing the transition of issue type "Story Task"

please help me how do i resolve this problem. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,050 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you