export - Exporting JIRA issues to a flat file -


i looking find way, whether through api's or plug-ins, export information captured in issue creation form in jira. process flow user create issue filling out entire form (textboxes, date values etc.) , when click create creates flat file (e.g. csv file), placed in specific folder. there way of accomplishing this? alternative methods?

thanks in advance.

many ways that, 1 simple solution: using jira scripting suite using post function on issue creation transition on project's workflow. simple example:

from com.atlassian.jira import componentmanager  # issue objects issuemanager = componentmanager.getinstance().getissuemanager() issuefactory = componentmanager.getinstance().getissuefactory() authenticationcontext = componentmanager.getinstance().getjiraauthenticationcontext() customfieldmanager = componentmanager.getinstance().getcustomfieldmanager() cf_example = customfieldmanager.getcustomfieldobjectbyname("custom field") # write file key = issue.getkey() def f = new file('new_issues/'+key) f.write(issue.getsummary()+","+issue.getfixversions()) f.write(","+issue.getaffectedversions()+","+issue.getpriority()",") f.write(issue.getcustomfieldvalue(cf_example)) 

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -