Questions tagged [atlassian-plugin-sdk]

the Atlassian plugin tag is for questions related to the Atlassian plugins SDK from the company Atlassian

the Atlassian plugin tag is for questions related to the Atlassian plugins SDK from the company Atlassian

222 questions
14
votes
4 answers

How do I save a value into a custom field in JIRA programmatically?

I've spent days trying to find out how to save or update a value into a CustomField programmatically and finally found out how it's done. So I'll make this a question and then answer it as I would have loved to have this question and answer. There…
enormace
  • 641
  • 2
  • 6
  • 20
14
votes
1 answer

Confluence blueprint substitution does not work in macros with plain-text body

I've created a Confluence blueprint plugin as per the basic/intermediate/advanced tutorials available from Atlassian. I now want to update the page template to include a {HTML} macro with embedded CDATA, where a URL in that CDATA contains a portion…
MeterLongCat
  • 228
  • 2
  • 11
10
votes
3 answers

atlassian-plugin.xml contains a definition of component-import. This is not allowed when Atlassian-Plugin-Key is set

This is what I get when I run atlas-create-jira-plugin followed by atlas-create-jira-plugin-module selecting option 1: Component Import. The problem is that all tutorial examples appear to have plugin descriptor generated by old SDK version (that…
tishma
  • 1,855
  • 1
  • 21
  • 43
6
votes
2 answers

Atlassian Confluence SDK Problem starting App 404

when starting a Confluence plugin I always get the following error: [INFO] [talledLocalContainer] 2020-08-06 20:48:58,116 ERROR [main] [ContainerBase.[Catalina].[localhost].[/confluence]] log Exception sending context initialized event to listener…
6
votes
2 answers

Where do I set the atlassian-plugin-sdk 'allowGoogleTracking' option to false?

I have installed/setup the atlassian-plugin-sdk so I can look into JIRA plugin development. However, when I run "atlas-run-standalone --product jira" command and it starts up the JIRA instance, it tries to connect to google analytics and gets a…
dleerob
  • 4,951
  • 4
  • 24
  • 36
6
votes
2 answers

How to run Checkstyle, Findbugs, or PMD programmatically on file *content*

I'm writing a utility which checks Atlassian Stash pull requests for modified files - the goal is to run each Java file through Checkstyle (or Findbugs, or PMD), and then have the plugin comment on each line with problems. To accomplish this, the…
Mike Cialowicz
  • 9,892
  • 9
  • 47
  • 76
5
votes
2 answers

Bamboo ProcessService bean does not exist?

Following https://developer.atlassian.com/bamboodev/bamboo-tasks-api/executing-external-processes-using-processservice I would like to invoke some command using ProcessService bean. The injection as described in the link, does not work. I checked…
Kousalik
  • 3,111
  • 3
  • 24
  • 46
5
votes
1 answer

How to use Bamboo variables in a Task plugin?

I am trying to use Bamboo build variables in a Task plugin (e.g. bamboo.jira.version and similar). Using taskContext.getBuildContext().getVariableContext() only seems to retrieve custom build variables, and not the ones that are built into bamboo.…
lm5630
  • 51
  • 4
4
votes
0 answers

How to ensure entity properties set against Jira issues are up to date if app.js dies and has to be restarted

I have a Jira Cloud Add On that listens for webhook events 'issuelink_created', 'issuelink_deleted' and 'connect_addon_enabled'. When 'issuelink_created' or 'issuelink_deleted' events are received I update the entity properties for each issue to…
Captain Kirk
  • 350
  • 6
  • 24
4
votes
1 answer

How to include libraries/dependencies when creating a jar file?

I created a Confluence plugin(A Java application) which has Maven on it and includes some dependencies in the pom.xml as follows: (It needs to use the Google Client Library) com.google.apis
skyline
  • 443
  • 9
  • 31
4
votes
1 answer

What is the practical difference between atlas-run and atlas-run-standalone in the Atlassian SDK?

The Atlassian plugin SDK is used to create plugins for Atlassian products. The kit includes two programs, atlas-run and atlas-run-standalone that appear to perform the same task: run some plugins (including yours) within an instance of one of the…
phs
  • 10,687
  • 4
  • 58
  • 84
4
votes
0 answers

How Jira plugin custom field value gets processed on the way to .vm templates

Jira server 7.2.1. Custom field plugin. The question follows this discussion Can't understand, what does method getSingularObjectFromString do? and some info from "Practical jira plugins" I'm trying to implement a database custom field with basic…
Emptyfruit
  • 303
  • 2
  • 11
4
votes
3 answers

Atlassian-plugin : unknown packaging type

I want to develop Stash Plugins but can't get started. There is an error in our pom.xml. Project build error: Unknown packaging: atlassian-plugin Project build error: Unresolveable build extension: Plugin…
prb_cm
  • 117
  • 1
  • 4
  • 13
4
votes
2 answers

Injecting SoyTemplateRenderer in custom Atlassian JIRA plugin

I'm currently trying to develop a custom Jira plugin, which also uses a servlet to render a Soy template. This is the code of my servlet: /* * To change this license header, choose License Headers in Project Properties. * To change this…
Mario Fraiß
  • 1,095
  • 7
  • 15
4
votes
1 answer

In python, how can I run a command-line program that does not return until I send Ctrl+D to it

I'm writing python unit tests that test against a REST API that needs to be running as another process. The REST server is a tomcat application that I call from the shell to run in development mode, so what I am looking to do in the python test…
MStudley
  • 685
  • 1
  • 5
  • 7
1
2 3
14 15