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

how to interceptor JIRA?

Alberto Expósito October 13, 2015

I need modify issue before save and modify after read. I can´t use events neither validations. 

I try with AOP (How do I can use aop/aspect in jira plugin..) , I created interceptor in actions... but this not work. 

Can anybody help me?

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2015

This sounds as a very error-prone thing to do.

If I were you, I'd either:

  1. Either build the encrypted version of the custom field types you need to support. Like "Encrypted text (single line)" and similar. As for the implementation, I'd override the behaviour of the original implementation, capturing the encryption logic in some easy to use utility classes.
  2. Do the encryption in the database level. I guess that's what matters at the end, and that way you could externalize your customization from JIRA core code.

 

Volodymyr Krupach
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2015

Build your own custom filed addon looks like the only right approach.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 14, 2015

I see where the "I can't use" comes from now, although it's still pretty much wrong. I wholeheartedly agree with Ferenc and Volodmyr on this one - forget trying to use existing stuff, this is something you should completely encapsulate within your own custom field add-on. Any other approach is going to be at best clunky and twisted, and at worse, still expose unencrypted data.

0 votes
Alberto Expósito October 13, 2015

Sorry,

I need encrypt and decrypt the values of custom fields with AES. One option is create an event and override velocity for this CF. But, this solution is not right because I have some integrations with others systems , for example Mobility for JIRA.

0 votes
Midori
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 13, 2015

This sounds very dangerous to me. I'd not try to weave my logic into low-level JIRA mechanisms like these. You should explain what you want to achieve, not how to achieve that.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 13, 2015

Sorry, I don't understand the requirements.  Could you explain what you want JIRA to do?  Without talking about the specifics of timings?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events