Transition Issue on Post function Call

I am trying to transition an issue based on some conditions. On Issue Create event, after the "Fire a Issue Created event that can be processed by the listeners" step, I am trying to fire a transition based on a condition. Though I have added log statement, I am not able to get the message on atlassian-jira.log file. What is missing here?

2 answers

I am not sure if there is any limitation on Issue Created event..

Unfortunately, you cannot at this time trigger a transition on an issue using the Transition Issue post-function from within the Create transition. See https://innovalog.atlassian.net/browse/JMWE-271

Hi David, Why are the log statements which are in the condition text of Transition Issue post function not getting called?

Could you please suggest if there is any workaround to achieve this?

I have no idea why the log traces don't appear. They clearly should, since the Groovy condition is the first thing that gets run by the post-function. Can you post your Groovy code here? As for workarounds, I'm not aware of any but we intend to try and provide a solution ASAP (although I cannot commit on a specific date right now).

log.info("subtask objects size : "+issueObject.getSubTaskObjects().size()); issueObject.getSubTaskObjects().size() > 0

Did you adjust the log level for the com.innovalog.jmwe package (in Admin)? Because by default INFO level logging is disabled. Otherwise, replace log.info() with log.error() to make sure the log is written.

Thanks David. I am able to see the logs after the setting of log level.

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 Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

300 views 3 11
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