how do i catch exception in SIL

How do i catch exception in SIL with JJUPIN, i need to loop thru all users in a group to find the one who have this property "Division Head" and its value.

But for user that dont have this property it logs an exception on atlassian-jira.log

vDivisions = getUserProperty(vUser, "Division Head");

Although transition still continues but il logs a lot of exception

Thanks,

eric

1 answer

1 accepted

Hi Eric,

Unfortunately, you can't catch exceptions in SIL at the moment, but this feature will be available in SIL 3.0, which is still a few months away from release.

HTH

As a workaround, you can get the user using the http://confluence.kepler-rominfo.com/display/SIL/sqlroutine. The tables you need to look at are app_user, propertyentry (for the property name) and propertystring(for the property value). I would recommend you add a propterty to one of your users and then check these tables to see how the data is structured.

Yeah this was my solution for now.

thanks

I am looking forward to see support for exceptions! :)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 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