Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to listen to listen to jira events from the API?

Christoph Roth
Contributor
June 11, 2018

Hi,

i am developing an application which should send an email if the user changes a custom field on a jira issue.  The language im using is C#.

 

Is there a way to listen to this kind of event using the Atlassian SKD?

If not, what else could I use?

3 answers

1 accepted

0 votes
Answer accepted
Tarun Sapra
Community Champion
June 11, 2018

Hello @Christoph Roth

JIRA .NET SDK is pretty limiting and no where close to the official Atlassian SDK which expects Java code.  Thus, if you want to write C# application then what you can do is to use web-hooks. Basically have your jira application sent your C# application  an webhook callback notification and once your C# application receives this Jira webhook notification then your application can send the email.

0 votes
Danyal Iqbal
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.
June 11, 2018

workaround:

-Remove the custom field from the edit screen.

-Add the custom field to a screen on a global transition (from all statuses)

-Fire an event on this transition.

-Configure the notification scheme to send an email on this event.

0 votes
Prakhar Srivastav {Appfire}
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.
June 11, 2018

Hi @Christoph Roth

 

You can use built in Listeners in JIRA or you can event create and trigger a custom listener.

For your use case I think , Issue Update event with condition on you custom field should be enough.

Follow the Atlassian documentation here :

https://confluence.atlassian.com/adminjiraserver/listeners-938846909.html

 

Regards

Prakhar

Christoph Roth
Contributor
June 11, 2018

Hi @Prakhar Srivastav {Appfire},

it seems like it isn't possible to acess these listeners from the Atlassian.SDK(.NET) 

I only find Java examples using the Atlassian Plugin SDK. Is there a way to achieve my goal using C#?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events