Posts

Create jira sub-task during issue creation time using script runner

 //Description: used for create subtask per component in  If user select coponents and CIP# field value // Date: 2021-07 import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.IssueInputParametersImpl import org.apache.log4j.Logger import com.atlassian.jira.issue.CustomFieldManager def log = Logger.getLogger("com.acme.workflows") def ftopor_cip_customField =  ComponentAccessor.getCustomFieldManager().getCustomFieldObject("customfield_20320"); def ftopor_cip_values = (String)issue.getCustomFieldValue(ftopor_cip_customField); final newLabel = 'create_subtask' if (!issue.subTask) {     //log.warn (issue.getComponentObjects().getAt(0)?.getName())     no_of_componets = issue.getComponentObjects().size()     if(no_of_componets>0){         for (i=0; i<no_of_componets; i++){             createSubtask(issue,issue.getComponentObjects().getAt(i)?.getId(),issue.getComponentObjects().getAt(i)?.get

Add Jira field validation using Script runner beheaviour (field value check or unque value setup)

 import com.onresolve.jira.groovy.user.FormField import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.bc.issue.search.SearchService  import com.atlassian.jira.jql.parser.JqlQueryParser import com.atlassian.jira.web.bean.PagerFilter import com.atlassian.jira.issue.search.SearchQuery def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser) def searchService = ComponentAccessor.getComponent(SearchService) FormField cip_form_val = getFieldByName("CIP#"); def projKey = 'FTOPOR' def cip_submitted_value = cip_form_val.getValue().toString() //f jqlSearch = 'project = ' + projKey + ' AND "CIP#" ~ "\\"' + cip_submitted_value + '\\""' //f query = jqlQueryParser.parseQuery(jqlSearch) //f results = searchService .search(user,query, PagerFilter.getUnlimitedFilter()) //results.getResults() //(results.getTotal()!= 0) if (cip_s

Jira DB upgrade process

This summary is not available. Please click here to view the post.

Jira Tips & Tricks

Some jira application tips, that you needed some time for performance analysis purpose. 1. Found inactive jira project that is last updated on 01/01/2015: SELECT  p.PNAME as "Project Name",p.pkey as "Project Key",count(i.id) as "# of issues", to_char(MAX(i.UPDATED),'dd/mm/yyyy') as "Last Update Date",c.display_name||'('||p.LEAD||')' as owner FROM jiraissue i, project p, cwd_user c where p.ID = i.PROJECT and p.LEAD=c.user_name HAVING MAX(i.UPDATED) < to_date('01/01/2015','dd/mm/yyyy') GROUP BY p.pkey,p.LEAD,p.PNAME,c.display_name ORDER BY MAX(i.UPDATED) ASC;

Create Space Blueprint

Create confluence custom space blueprint Please follow below mentioned steps to create your own custom space blueprint: Step 1: First you need to install Atlassian SDK for create your own plugin structure, compile your source code & make jar file Step 2: After install sdk tool you need to run “atlas-create-confluence-plugin” this cmd from your command prompt. Then you need to provide some information like that:   group-id com.test.confluence.plugin artifact-id test-confluence version 1.0 package com.test.confluence.plugin   You can change group id & artifact id as per your requirement. After entering those values it will create new folder name “test-confluence” in your system. Then navigate to this folder and delete some content.   a.       Remove all content from /src/test/java b.       Remove all data from src/test/resources/ c.        Delete all data from src/main/java/com/test

About Me

• A competent professional with 6+ years of rich experience as Software Developer using PHP(core PHP & framework: Code igniter), MYSQL, DRUPAL(6&7), JAVASCRIPT - JQUERY, HTML, CSS and AJAX. • Presently TECH ANALYST at Infosys. • Comprehensive understanding of client’s needs for the proper management and delivery of projects. • Adept in analyzing information system needs, custom designing solutions, evaluating end-user requirements & troubleshooting for web application. • Specialized in planning, designing & implementing web based applications using PHP, MYSQL. • Skilled in providing a high level of customer service and satisfaction on a technical & functional level in resolving customer problems. • Providing solutions to the technical problems.