The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Gonchik Tsymzhitov
Community Champion
January 7, 2021

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