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

Lorie den Os 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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