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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

82 views 0 5
Read article

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