Size: a a a

AUG for Developers

2020 September 04

R

Ranorex in AUG for Developers
Alexey Matveev
Для зефира новое апи для миграций сделали. Они наверное поэтому тебя и возвращают
Минуточку... Минуточку.. Я записываю... Сорян посоны, что кинул жиру, сейчас девопс с кубером на носу... Какое новое апи для жиры?
источник

R

Ranorex in AUG for Developers
Alexey Matveev
Я могу пойти за 300к euro в год
Уберите лишний нолик и вас захотят все. Ога
источник

R

Ranorex in AUG for Developers
Alexey Matveev
Сварм? Не это не гордо. Кубер нужно.
Если ты слышишь уже 25 раз от различных людей про то, что сварм это отстой, то это точно означает, что он отстой
источник

R

Ranorex in AUG for Developers
Ranorex
Как ночальницы немку склонить к написанию мной питон скрипта?
Спокуха, посоны. Ночальницу сколняют к этому спейшиолизд по PowerShell скриптам, который ни в джава ни в питоне ни ногой
источник

R

Ranorex in AUG for Developers
Alexey Matveev
Конечно, load runner бери.
Сенсация года! Мою бывшую ночальницу склоняют к гатлингу уже другие люди
источник
2020 September 05

AM

Alexey Matveev in AUG for Developers
Ranorex
Уберите лишний нолик и вас захотят все. Ога
Не, за такие деньги я и тут поработаю)
источник
2020 September 08

AM

Alexey Matveev in AUG for Developers
Вчера я значит сделал atlas-create-jira-plugin в плагине с parent pom. И получил вот такой конфиг <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>


   <groupId>ru.matveev.alexey.atlassian</groupId>
   <artifactId>calculator-extension</artifactId>
   <version>1.0.0-SNAPSHOT</version>

   <organization>
       <name>Example Company</name>
       <url>http://www.example.com/</url>
   </organization>

   <name>calculator-extension</name>
   <description>This is the ru.matveev.alexey.atlassian:calculator-extension plugin for Atlassian JIRA.</description>
   <packaging>atlassian-plugin</packaging>

   <dependencies>
       <dependency>
           <groupId>com.atlassian.jira</groupId>
           <artifactId>jira-api</artifactId>
           <version>${jira.version}</version>
           <scope>provided</scope>
       </dependency>
       
<!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
       <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
       <!--
       <dependency>
           <groupId>com.atlassian.jira</groupId>
           <artifactId>jira-core</artifactId>
           <version>${jira.version}</version>
           <scope>provided</scope>
       </dependency>
       -->
       
<dependency>
           <groupId>junit</groupId>
           <artifactId>junit</artifactId>
           <version>4.10</version>
           <scope>test</scope>
       </dependency>

       <dependency>
           <groupId>com.atlassian.plugins</groupId>
           <artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
           <version>${osgi.javaconfig.version}</version>
       </dependency>
       
<!-- OSGi Java Config dependencies -->
       
<dependency>
           <groupId>org.apache.felix</groupId>
           <artifactId>org.apache.felix.framework</artifactId>
           <version>4.0.0</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-beans</artifactId>
           <version>${spring.version}</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-context</artifactId>
           <version>${spring.version}</version>
           <scope>provided</scope>
       </dependency>

       
<!-- WIRED TEST RUNNER DEPENDENCIES -->
       
<dependency>
           <groupId>com.atlassian.plugins</groupId>
           <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
           <version>${plugin.testrunner.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
           <groupId>javax.ws.rs</groupId>
           <artifactId>jsr311-api</artifactId>
           <version>1.1.1</version>
           <scope>provided</scope>
       </dependency>
       <dependency>
           <groupId>com.google.code.gson</groupId>
           <artifactId>gson</artifactId>
           <version>2.2.2-atlassian-1</version>
       </dependency>

       
<!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
       <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
       <!--
       <dependency>
           <groupId>com.atlassian.jira.tests</groupId>
           <artifactId>jira-testkit-client</artifactId>
           <version>${testkit.version}</version>
           <scope>test</scope>
       </dependency>
       -->
   
https://bitbucket.org/atlassian/jira-testkit -->
       <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
       <!--
       <dependency>
           <groupId>com.atlassian.jira.tests</groupId>
           <artifactId>jira-testkit-client</artifactId>
           <version>${testkit.version}</version>
           <scope>test</scope>
       </dependency>
       -->
   </dependencies>

   <build>
       <plugins>
           <plugin>
источник

AM

Alexey Matveev in AUG for Developers
<groupId>com.atlassian.maven.plugins</groupId>
               <artifactId>jira-maven-plugin</artifactId>
               <version>${amps.version}</version>
               <extensions>true</extensions>
               <configuration>
                   <productVersion>${jira.version}</productVersion>
                   <productDataVersion>${jira.version}</productDataVersion>
                   
<!-- Uncomment to install TestKit backdoor in JIRA. -->
                   <!--
                   <pluginArtifacts>
                       <pluginArtifact>
                           <groupId>com.atlassian.jira.tests</groupId>
                           <artifactId>jira-testkit-plugin</artifactId>
                           <version>${testkit.version}</version>
                       </pluginArtifact>
                   </pluginArtifacts>
                   -->
                   
<enableQuickReload>true</enableQuickReload>

                   
<!-- See here for an explanation of default instructions: -->
                   <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
                   
https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
                   <instructions>
                       <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>

                       
<!-- Add package to export here -->
                       
<Export-Package>ru.matveev.alexey.atlassian.api,</Export-Package>

                       
<!-- Add package import here -->
                       
<Import-Package>org.springframework.osgi.*;resolution:="optional",
                           org.eclipse.gemini.blueprint.*;resolution:="optional",
                           *</Import-Package>

                       
<!-- Ensure plugin is spring powered -->
                       
<Spring-Context>*</Spring-Context>
                   </instructions>
               </configuration>
           </plugin>
       </plugins>
   </build>

   <properties>
       <jira.version>8.12.0</jira.version>
       <amps.version>8.2.0-2ef5d6e15</amps.version>
       <plugin.testrunner.version>2.0.1</plugin.testrunner.version>
       <osgi.javaconfig.version>0.2.0</osgi.javaconfig.version>
       <spring.version>4.2.5.RELEASE</spring.version>
       
<!-- This property ensures consistency between the key in atlassian-plugin.xml and the OSGi bundle's key. -->
       
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
       
<!-- TestKit version 6.x for JIRA 6.x -->
       
<testkit.version>6.3.11</testkit.version>
       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       <maven.compiler.source>1.8</maven.compiler.source>
       <maven.compiler.target>1.8</maven.compiler.target>
   </properties>

</project>
источник

AM

Alexey Matveev in AUG for Developers
Там он меня спросил хочу ли я использовать osgi config
источник

AM

Alexey Matveev in AUG for Developers
И получил вот такой файлЖ
источник

AM

Alexey Matveev in AUG for Developers
@Configuration
@Import({
       ModuleFactoryBean.class,
       PluginAccessorBean.class
})
public class MyPluginJavaConfig {


   
// imports ApplicationProperties from OSGi
   
@Bean
   public ApplicationProperties applicationProperties() {
       return
importOsgiService(ApplicationProperties.class);
   }

   @Bean
   public MyPluginComponent myPluginComponent(ApplicationProperties applicationProperties) {
       return new MyPluginComponentImpl(applicationProperties);
   }

   
// Exports MyPluginComponent as an OSGi service
   
@Bean
   public FactoryBean<ServiceRegistration> registerMyDelegatingService(
           final MyPluginComponent mypluginComponent) {
       return
exportOsgiService(mypluginComponent, null, MyPluginComponent.class);
   }
источник

AM

Alexey Matveev in AUG for Developers
В общем есть еще одна возможность бины поднимать из Java Config
источник

AM

Alexey Matveev in AUG for Developers
только почему про это нигде не написано, я так и не понял. И вообще как это получить не через родительский pom я так и не понял
источник

A

Alexey in AUG for Developers
писали же
источник

AM

Alexey Matveev in AUG for Developers
Где?
источник

A

Alexey in AUG for Developers
источник

AM

Alexey Matveev in AUG for Developers
Спасибо! Попробую через эту штуку сделать следующий плагин
источник
2020 September 09

VM

Vladimir Martynov in AUG for Developers
Привет, подскажите, есть ли документация как использовать запросы jquery при разработке плагинов..
нахожу отдельные ветки на форумах.. да и то года разные, чтото уже неактуально.. (напрмиер хочу получать baseURL и issueId в js   нашел ряд решений.. но работает через раз и не все
AJS.contextPath()
AJS.$("input[name='id']").val()
AJS.$("meta[name='ajs-issue-key']").attr("content")
AJS.params.baseURL
)
может что посоветуете)
источник

R

Robert in AUG for Developers
Vladimir Martynov
Привет, подскажите, есть ли документация как использовать запросы jquery при разработке плагинов..
нахожу отдельные ветки на форумах.. да и то года разные, чтото уже неактуально.. (напрмиер хочу получать baseURL и issueId в js   нашел ряд решений.. но работает через раз и не все
AJS.contextPath()
AJS.$("input[name='id']").val()
AJS.$("meta[name='ajs-issue-key']").attr("content")
AJS.params.baseURL
)
может что посоветуете)
JIRA.Issue.getIssueId()
?
источник

VM

Vladimir Martynov in AUG for Developers
в js?
источник