-
To install the OpenSSH on the Windows machine, follow these tutorials:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
git add . | |
git commit -m 'git cache cleared' | |
git push |
There are a few JQL syntax bits to get you started:
AND
--- allows you to add qualifiers to a list!= Thing
--- target one thingis in (List, Of, Things)
--- target a bunch of things (Done, Closed, Resolved) typicallynot in (List, of, Things)
--- do not include a bunch of things-1w
--- relative time. You can also use -1d for day"2015/3/15"
--- specific dates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET https://flowxo.com/api/conversations/615c6b5e14fc0900a6556061%2Fc%2FMwvFx5eJp/messages?skip=0&limit=1000 | |
Accept: application/json | |
Authorization: Bearer ***** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.bc.issue.search.SearchService | |
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.jql.builder.JqlQueryBuilder | |
import com.atlassian.jira.util.thread.JiraThreadLocalUtils | |
def searchService = ComponentAccessor.getComponent(SearchService) | |
def customFieldManager = ComponentAccessor.customFieldManager | |
def storyPointsCf = customFieldManager.getCustomFieldObjectByName('Story Points') | |
def issue = event.issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.issue.Issue | |
import com.atlassian.jira.issue.ModifiedValue | |
import com.atlassian.jira.issue.util.DefaultIssueChangeHolder | |
import com.atlassian.jira.component.ComponentAccessor | |
def issue = event.issue as Issue | |
def customFieldManager = ComponentAccessor.getCustomFieldManager() | |
def tgtField = customFieldManager.getCustomFieldObjects(event.issue).find {it.name == "My CustomField"} | |
def changeHolder = new DefaultIssueChangeHolder() | |
tgtField.updateValue(null, issue, new ModifiedValue(issue.getCustomFieldValue(tgtField), "myvalue"),changeHolder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.component.ComponentAccessor | |
import com.atlassian.jira.issue.fields.CustomField | |
def date2 = new Date() //.plus(3) | |
def dateField = getFieldById(fieldChanged) | |
def dateValue = dateField.value as Date | |
dateField.clearError() | |
if (dateValue < date2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.JsonParserType | |
import groovy.json.JsonSlurper | |
def commentProperties = transientVars["commentProperty"] as String[] | |
if (commentProperties && commentProperties.size() > 0) { | |
log.debug commentProperties.join(", "); | |
def isInternalComment = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.atlassian.jira.issue.attachment.Attachment; | |
import com.atlassian.jira.issue.AttachmentManager; | |
import com.atlassian.jira.component.ComponentAccessor; | |
AttachmentManager attachmentManager = ComponentAccessor.getAttachmentManager(); | |
List<Attachment> attachments = attachmentManager.getAttachments(issue); | |
long size = 0l; | |
for (Attachment at: | |
attachments) { | |
size += at.getFilesize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!someString?.trim()) { | |
logger.lifecycle("the string is null or empty.") | |
} |
NewerOlder