Forums

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

JIRA project template - How to deal with exceptions in AddProjectHook?

Lorie den Os
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2018

Hello,

I created a project template plugin, according to the tutorial here:

https://developer.atlassian.com/server/jira/platform/creating-a-project-template/

It works fine!

I'd like to catch exceptions in the configure method of my hook, and to display the error message on a screen.

 @Override
public ConfigureResponse configure(final ConfigureData configureData)
{

try {
myComponent.doStuff(configureData);

} catch (CustomPluginException e) {
// TO DO
// send error message to Jira IHM?
}

return ConfigureResponse.create();
}

Is there any recommended way to do that?

Thanks in advance!

 

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 7, 2021

Did you find some best way ? If so feel free to add info, please

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events