You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Is it possible to copy the fields for an issue into a description?
In Jira, for a project with a particular issue type - When someone wants to create a new ticket - I want information collected in separate fields (like a form that captures data) and aggregate it in the description field.
Reason for this is : I have the jira cloud slack app integration , but it only works with summary and description field.
Hi Joe,
Yes, you can do that with Automation For Jira. Here's some information to get started:
There are two types of automation:
Automation Basics: https://www.atlassian.com/software/jira/guides/expand-jira/automation
You can do this via global rules to apply to all projects also. You'll need to be a Jira Admin/Site Admin, go to Jira Settings > System > Automation Rules (left-hand menu).
For more on using Automation For Jira see these help pages.
Your rule will be based on a new Issue being created.
Then put in any conditions.
Then Edit Issue action.
For the Description value use:
{{issue.description}}
{{issue.first field}}
{{issue.second field}}
And so on.
Hi John. Thank you so much for your response here.
My next issue is that although the automation logs so "Successful" automations, the custom fields I am trying to populate don't show up. The values are all blank.
Here is what I am putting in:
-------------------------------
(In editing the "Description Field"):
Justification:
{{issue.customfield.customfield_24669.asJsonString}}
Fix Version:
{{issue.customfield.customfield_24670.asJsonString}}
Deploy Date:
{{issue.customfield.customfield_24665.asJsonString}}
Environment(s):
{{issue.customfield.customfield_24666.asJsonString}}
Pull Request:
{{issue.customfield.customfield_18900.asJsonString}}
Root Cause:
{{issue.customfield.customfield_24667.asJsonString}}
RCA:
{{issue.customfield.customfield_24668.asJsonString}}
[Optional] Components:
{{issue.fields.components}}
[Optional] Found in Version:
{{issue.customfield.customfield_22800.asJsonString}}
[Optional] Assignee:
{{issue.fields.assignee}}
[Optional] Responsible PM:
{{issue.customfield.customfield_24671.asJsonString}}
[Optional] Found by:
{{issue.customfield.customfield_24672.asJsonString}}
[Optional] SLA Deadline:
{{issue.customfield.customfield_24673.asJsonString}}
[Optional] Team:
{{issue.customfield.customfield_24674.asJsonString}}
Here is what shows up:
-------------------------
(In editing the "Description Field"):
Justification:
Fix Version:
Deploy Date:
Environment(s):
Pull Request:
Root Cause:
RCA:
[Optional] Components:
[Optional] Found in Version:
[Optional] Assignee:
[Optional] Responsible PM:
[Optional] Found by:
[Optional] SLA Deadline:
[Optional] Team:
The reason why I am doing it this way is because some fields have multiple values, or are floating numbers. Am I putting in the syntax wrong? Thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why are you adding as a Json string? Why not just this:
Justification:
{{issue.customfield_24669}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks John! This resolved it for most of the properties I listed; however, in the case of custom fields that contain tagged Jira Users, I only am able to see their UUIDs. Is there a way I can show their names instead?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great! Glad that helped out.
For the user fields try adding .displayName at the end. Like this:
{{issue.customfield_24669.displayName}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again John! I was able to make the change, but now the automation is not working again. The description field is completely empty now, but the Audit Logs do not show any errors.
I rolled back the change, and now the Description field is still completely empty. Do you have any suggestions as to how I can troubleshoot this next thing? Again, I appreciate all the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you post a screenshot of the latest rule that failed and the audit log?
Be sure the issue you are testing against has values in it 😊
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scratch that John, it works!!! I had to wait the few seconds it took for the automation to complete. My mistake was accessing the ticket I created too soon. Thanks for all the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fantastic!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk , the field {{issue.fields.issuelinks}} doesn't show properly:
I expect here to see the ticket name (ex. IT-49384), but instead am shown what is highlighted in the above screenshot.
Is there a way around this?
Thank you as always!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at this post and see if it helps you solve it:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are getting closer. I made the suggested changes as mentioned in the post you linked; however the result is a URL as opposed to just the ticket name:
Is there a further adjustment you can recommend?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the smart value you are using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
2 actually:
{{issue.issuelinks.inwardIssue}}
{{issue.issuelinks.outwardIssue}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
Any idea on how to the automation to work on just one issue type??
Thanks
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to add a condition to check for just that one issue type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.