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