Kayıtlar

[Groovy] how to validation custom field value Jira

how to validation custom field value Jira import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.opensymphony.workflow.InvalidInputException /** * Created by Ozdemirce */ MutableIssue myIssue = issue; def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName( "kontrolEt" ) if (customField == null ){ invalidInputException = new InvalidInputException(); return ; } def cfValue = myIssue.getCustomFieldValue( customField ); if (cfValue == null ^ cfValue == '' ){ invalidInputException = new InvalidInputException(); }

[Groovy] how to check Jira User in any group workflow validation

how to check Jira User in any group groovy sccript workflow validation import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.user.ApplicationUser import com.atlassian.jira.security.groups.GroupManager ApplicationUser appUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(); GroupManager groupManager = ComponentAccessor.getGroupManager(); Collection<String> groupNames = groupManager.getGroupNamesForUser(appUser.getDirectoryUser().getName()); passesCondition = false ; for ( String gName : groupNames ){ if ( gName == "DummyGroup" ){ passesCondition = true ; } }

[Groovy] How to check User in Any Role

How to check User in Any Role Jira da Kullanıcının verilen role bilgisinde olup olmadığını döner Groovy Script import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.security.roles.ProjectRoleManager import com.atlassian.jira.user.ApplicationUser MutableIssue myIssue = issue; def project = myIssue.getProjectObject() ApplicationUser appUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser(); ProjectRoleManager projectRoleManager = ComponentAccessor.getComponent(ProjectRoleManager.class); def projectRole = projectRoleManager.getProjectRole("Administrators"); passesCondition = projectRoleManager.isUserInProjectRole(appUser, projectRole, project)

Font Özellikleri

/*************************** FONT ÖZELLKLERİ*********************/ /***************************************************************/ /** font alttakileri tek satırda kullanmak için en az iki özellik yazmamız gerek ;) font: font-style font-weight font-size / line-height font-family font: italic small-caps bold 200ox/210px arial; **/ /** font-family  -- yazı tipi font-family: arial; h1{ font-family:arial; } p{ font-family:arial; } p{ font-family:tahoma, arial; } **/ /** font-size -- yazı boyutunu ayarlar alabileceği degerler px,pt, % kullanıla bilir font-size: xx-small; font-size: 10px; font-size: 3pt; font-size: 3em; font-size: 50%m; ..s **/ /** font-style -- yazı biçimi alabileceği degerler normal,italic, oblique font-style: normal; ...

CSS Seciciler

/** [] Nitelik Secicileri [] köşeli parantezden olusur : sözde sınıf secicileri : ikiNokta üst üste den olusur :: sözde elemanlar ise  :: iki tane ikiNokta üst üste olusur **/ /* *{ evrensel secici tüm nesneleri secer color:red; } div *{ div içersindeki tüm nesneleri secer color:red; } */ /* #test { id si test olan nesneyi secer tekil secici color:red; } div#test { div içindeki id si test olan nesneyi secer color:red; } */ /* .test{ sınıf  secici class ismi test olan tüm nesneleri secer color:red; } div.test{ div içerisinde class ismi test olanları secer color:red; } */ /* x y { x y torun secici } ul li { color:blue; } */ /* x{ herhangi bir nesneyi secer } span { color:blue; } */ /* a:link { a ziyaret edilmemiş ler için background-color:pink; } a:visited { ziyaret edilmis ...

[Eclipse] Shortcuts (Kısayollar)

All Shortcuts to Edit  ( Tüm Kısayollar düzenlemek içn  ) : Eclipse > Windows > Preferences >> General >> Keys ctrl + alt + down  : line copy crtl + Shift + R  : Open recourses Java sınıflarının aranmasında kullanılır crtl + Shift +T : Open Types  Java Type ların bulunmasında kullanılır interfaces lerde gelir crtl + D  : Delete line  satır silmeye yarar alt +  Up/Down  : Line Move  bir satırı taşımaya yarar

Garbage Link

web Service simple http://www.eclipse.org/webtools/community/education/web/t320/Implementing_a_Simple_Web_Service.pdf http://www.javatpoint.com/jax-ws-tutorial