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: 

Connect Jira to a web-app

Mister Kat
November 19, 2018

Hello,

 

I have a node.js web-app added to jira as user-installed app.

My app has some simple data:

{name: process_1},
{name: process_2},
{name: process_3}

What I need to do is:

1. Add a custom field named "tl_process" to the New Issue jira form

2. Have tl_process field list all the data from my app, eg: "process_1", "process_2", "process_3" as selectable values

2.1 Note: these values should be supplied to jira by my webapp

3. When a user creates new jira issue with tl_process value process_2 for example - my webapp should receive a notification about it. Then I will set my data to:

 {name: process_1, active: true}

 

What would be the best course of action to follow here?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
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 Champions.
November 20, 2018

As "your web app should supply the data to Jira", you'll need to define the tl_process field as a label - that's the only field that accepts new content from outside the admin UI.

Mister Kat
November 20, 2018

What do you mean by "from outside the admin UI"?

Nic Brough -Adaptavist-
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 Champions.
November 20, 2018

To add options to a custom field, you need to be an admin, and you have to do it in the UI (i.e. in a browser) - there's no REST or remote calls for it.

Mister Kat
November 20, 2018

What would be your advice then?

Make a custom add-on for the field? Then we will be able to fill it with custom data programmatically, right?

Nic Brough -Adaptavist-
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 Champions.
November 20, 2018

Well, you would, but an add-on will have to talk to Jira over the REST API, and that does not support it yet.

Mister Kat
November 21, 2018

But other add-ons on the Marketplace do have this functionality though!

Nic Brough -Adaptavist-
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 Champions.
November 21, 2018

The only ones I can find don't do it via the REST API.

Mister Kat
December 20, 2018

How do they do it then?

Nic Brough -Adaptavist-
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 Champions.
December 20, 2018

They implement their own data outside Jira, not amend Jira's settings.

TAGS
AUG Leaders

Atlassian Community Events