How to list the values in issue custom field?

Hi,

I am using on-demand JIRA. I want to create an add-on for issue custom field from "jiraIssueFields" module. Here, In this field, I need to get the values from my database and list them in to custom field.

Could any one help me out to develop an add-on?

Thanks in Advance!

 

4 answers

0 vote
Vasiliy Zverev Community Champion Feb 12, 2017

If you want to store values into JIRA database then you need to use Active Objects.

If it is you own database - then use some JDBC driver.

Hi Vasiliy Zverev,

Thanks for your response!

I want to implement using javascript. Could you please let me know that the how to get values from my database and put them in to JIRA database.

I am using below module

 

"modules":  {

"jiraIssueFields": [
{
"key" : "team-issue-field",
"name" : {
"value" : "Designs"
},
"description" : {
"value" : "Choose a Design"
},
"type": "single_select",
"extractions": [{
"path": "category",
"type": "string",
"name": "category"
}]
}
]

}

I have no idea where to write script to get the values from my database and put them in to JIRA DB.

Finally the values should be listed under custom field(Designs).

Thanks in Advance! 

0 vote
Vasiliy Zverev Community Champion Feb 13, 2017

If you want to get values from your own DB with JavaScript you need some web service with REST client to do this.

That is fine. But, As I mentioned in above module, where I need to write script. If we see below module, there is an option say URL where we can call html file.

"generalPages": [
         {
             "key""activity",
             "location""system.top.navigation.bar",
             "name": {
                 "value""Activity"
             },
             "URL""/index.html",
             "conditions": [{
                 "condition""user_is_logged_in"
             }]
         }
}

 But in 'JiraIssueFields' there is no option to call any other files like HTML and JS. So, Could you please tell me where I have to write code and how to call that from 'JiraIssueFields' module.

Thanks in Advance!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

63 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you