Adaptavist ScriptRunner for Jira Server Script Console Get Hour Issue Was Created

Created by Kristian Walker last modified
* This example script  console script can be run to show the hour of the day when an issue was created
* "All right, title and interest in this code snippet shall remain the exclusive intellectual property of Adaptavist Group Ltd and its affiliates. Customers with a valid ScriptRunner
* license shall be granted a  non-exclusive, non-transferable, freely revocable right to use this code snippet only within their own instance of Atlassian products. This licensing notice cannot be removed or
* amended and must be included in any circumstances where the code snippet is shared by You or a third party." 

// Get the ComponentAccessor
import com.atlassian.jira.component.ComponentAccessor

// Get the IssueManager to allow us to get the issue
def issueManager = ComponentAccessor.issueManager

// Get the issueObject
def issue = issueManager.getIssueByCurrentKey("<IssueKeyHere>") // your issue key here

// Save the created date timestamp to a variable
def createdFieldValue = issue.created

// get the Hour value from the created date
return createdFieldValue.getHours()

Comments (3)

  1. Linda Melson

    weddingbeemt2 slidesmt2 slidesmt2!hfkaj`&encoded=1&redirect=;redirect=[seite]= http://скачивалка.рф/dw/?url=$c&u= http://примгеодезия.рф/?goto= http://мотомагазин.net/forum/away.php?s=|el-3|es-2|cy-1|pt-0&ind1=9897&lang=1&p=pt-43|cy-51|es-44|el-58|ie-60&url=[392]:: Okey Oyna Padlet metin2 pvp serverler Padlet blogamca padlet blogamca padlet blogamca padlet blogamca padlet blogamca padlet metin2 blogamcaa blogamcaa blogamcaa blogamcaa blogamcaa blogamcaa blogamcaa blogamcaa

  2. Linda Melson

    PROFİL BACKLİNK LİST BACKLİNK LİST 2 BACKLİNK LİST 3 zafer2 blog okey zafer2;URL=^E4X&URL=¤t=,TFvar,00319d4f-d81c-4818-81b1-a8413dc614e6,TFvar,GYDH-Y363-YCFJ-DFGH-5R6H,TFvar, http://www.мфц{0}&sno={1}&link=;redirect=

  3. Linda Melson***2&url=[93]+[right_bottom_bottom_1_180]+%D0%BF%D0%B8%D0%B2%D0%BE+%D1%81%D0%BE%D1%87%D0%B8+2017&goto= <