Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 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
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events