Forums

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

Call a function/method after creating User story under EPIC

integmas April 11, 2020

Hello All, I am new to Jira development and have a strange requirement

 

As the title says, when ever a "User Story"/ Task is created, i need to update status in another application (by making a rest call.), i was wondering if this is possible by writing a plugin.

Please note that, I can write my own plugin but cannot install any plugins.

The other use case is, when ever a task status has changed in need to make a rest call.

 Can some one please point me to the documentation/examples which can help. Thanks a lot.

2 answers

0 votes
integmas April 27, 2020

I did solve most of my problems by implementing the event listener given in these docs

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
April 13, 2020

Hi @integmas ,

It is possible with Jira Webhooks.

integmas April 13, 2020

Thanks for the reply, Will try.

 

quick question, will this also get triggered when the state changes. i will test this anyway but i need to setup a server before that.

integmas April 13, 2020

Update: Reading up on this, it seems there is no way to add a Authentication header, which is mandatory in my case. will keep digging

Mehmet A _Bloompeak_
Atlassian Partner
April 15, 2020

As far as I know, it will get triggered when status changes too. If your rest api uses basic authentication, you can pass user pass in the url as https://username:pass@yourdomain.com/api/... .

integmas April 15, 2020

I saw in one of the posts (also stackoverflow) that https://username:pass@yourdomain.com/api/... .
doesnt work atleast on jira cloud

 

Thanks for the reply, i will update once i can test these.


link for stack overflow.

Mehmet A _Bloompeak_
Atlassian Partner
April 15, 2020

If you can customize your rest api, you can change the rest api to receive the credentials over query parameters. So, you can pass authentication parameters as query parameters in webhook url.

integmas April 27, 2020

am afraid i cannot do that as the app i am trying to integrate with cant be modified.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events