Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Problem

I would like to know when our Projects have been created in order to keep a thorough track of my projects. Is that possible?

Solution

Yes, that is possible. 

The first thing to keep in mind is that Jira does not save the Project creation date, but Profields does. What is the problem then? That the Project creation date will only appear since you first installed Profields forward. 

Here you can find a script that will help you fetch the Project creation date:




Code Block
import com.atlassian.jira.component.ComponentAccessor
import com.deiser.jira.profields.project.extra.ProjectExtraService
import java.text.SimpleDateFormat

def projectExtraService = ComponentAccessor.getOSGiComponentInstanceOfType(ProjectExtraService.class)
def simpleDateFormat = new SimpleDateFormat("YYYY")
def pattern = "%s-%s"
def projectExtra = projectExtraService.get(project)
def date = projectExtra.creationDate ? simpleDateFormat.format(projectExtra.creationDate) : "1900"

return String.format(pattern, date, projectExtra.projectId)


Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@140ea
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("date","project","profields") and type = "page" and space = "SKB"
labelsprofields project date


Page Properties
hiddentrue


Related issues