Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Send excel file when ticket is created.

Hello,

 

Is it possible to send an excel file with all the custom fields data as an email to a user.

Example:- 

if a jira ticket is created an email should be sent to me with an attachment of an excel sheet with all custom field name and its data.

 

Regards,

Sunil

2 answers

0 votes
Ravi Sagar Community Leader May 25, 2021

Hi @G Sunil Kumar 

If you ok with csv instead of Excel then yes possible to do that, write a scripted post function on create. You will also find examples to send mail here http://library.adaptavist.com/

csv is very easy to generate but if you really want to generate Excel (I am sure you have good reasons for that) then I highly recommend using Better Excel plugin which I have used in the past, it has REST end point if I remember correctly to generate the file and it integrates well with ScriptRunner. You will find examples in their documentation as well.

I hope it helps.

Ravi

Hi @Ravi Sagar ,

 

Can you provide details on how I can generate CSV of the ticket details.

 

Regards,

Sunil

Ravi Sagar Community Leader May 25, 2021

Hi Sunil,

It is very simple to generate a simple csv. In Groovy you have methods to create a file on disk and write on it.

File file = new File(/tmp/tmp.csv)

file.write("name,age,number")

In this case it is just one line but you can build your csv with multiple lines as well.

Ravi

@G Sunil Kumar 

As Ravi Mentioned, you can use a dedicated solution to automatically generate and email (or attach, save to local filesystem) a native Excel file from Jira. 

The combination of Better Excel Exporter and Better Excel Automation for Jira provides a no-code option for this, as the app adds new actions to Automation for Jira, which includes "Send Excel". 

Watch this short tutorial that shows how you can make it work: https://www.youtube.com/watch?v=vdDAoCTdJNc&t=32s

(Please note that Better Excel Automation for Jira is free, while Better Excel Exporter is a paid and supported app and I'm part of the team developing both apps.)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

301 views 13 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you