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

How can I automate and set the 'Resolution' field in Automation?

Hello,

 

I'd like to set the resolution codes in automation according to the ticket types.

I use one issue type: Support

I added another field which is called Sub-type. Sub-type values:

Support

Bug

Feature Request

 

I cannot seem to automate the 'Resolution' field in Automation.

This field is not available in the automated action "Edit Issue"

 

How can I automate and set the 'Resolution' field in Automation?

 

 

 

 

3 answers

1 accepted

0 votes
Answer accepted

If you are referencing to Automation for Jira, then I'm able to set the resolution in JSD.

See example below:

 

2019-10-09 09_30_29-Project automation - Jira.png

 

Can you explain how exactly you are setting up your rule?

Thank you, Gil.
I don't use the Automation for Jira plugin or any other plugin.
I use the available automation that is the Jira Service Desk Project

Here is the exact scenario ( I am attaching a screenshot of the Automation for clarification):

A customer support ticket (CS Ticket) is the one to communicate with the client.
In case of a bug, the CS ticket is linked to a BUG Ticket.


The Automation:
The Status of the CS ticket is changing according to the status transition go the BUG ticket.

The last part of the Automation I'm trying to implement:
When the status of the BUG ticket is set to 'Complete.'
Set the Status of the CS ticket to 'Done' and Set the Resolution code to "Code Fix."

While I can Set the Status of the CS ticket to 'Done,' I cannot see a way to set the resolution code to "Code Fix."

Thank you again, Gil, for your time and thoughtful advice.Screen Shot 2019-10-08 at 4.21.48 PM.png

see my above answer.

This is not possible, unfortunately.

Like Nir Malchy likes this

@Gil Can you explain how you got the "No Response" option (which I am guessing is a "blank" response) to show up? When using Automation for Jira, I can only change the Resolution to one of the pre-existing Resolutions (Done, Won't Do, etc.), not set it to blank.

Cheers!

If you have Admin rights in Jira, you can manually add more Resolution types.

I've added "No Response" and I use it once there's no activity after 10 business days.

Like Zack Foster likes this

Ah, okay. I thought that was a system-defined entry that would actually clear the resolution out. I don't want reopened issues to have that strikethrough!

I was able to get what I wanted via a POST function in the workflow. But it's no fun implementing that POST function in potential hundreds of workflow steps across dozens of workflows. A global automation solution would be much easier.

Cheers

I can't tell if you are referencing Automation for Jira plugin by Automation or something else.

If you mean to use the automation for JIRA the following may help. Otherwise I recommend opening a support ticket with the plugin developer. https://codebarrel.atlassian.net/servicedesk/customer/portal/1

Here is a link for creating basic rules editing custom fields:

https://community.atlassian.com/t5/Jira-questions/Use-custom-field-in-JIRA-Automation-plugin-rule/qaq-p/811530

Additionally, if you just want to set a specific resolution for the subtasks you can simply use the post function to update the resolution field in each of the transitions for each of the subtasks. Below is a link which can help with this strategy.

https://community.atlassian.com/t5/Jira-questions/How-to-automatically-set-issue-Resolution-to-quot-solved-quot/qaq-p/442222

Thank you, David.
I don't use the Automation for Jira plugin or any other plugin.
I use the available automation that is the Jira Service Desk Project

Here is the exact scenario ( I am attaching a screenshot of the Automation for clarification):

A customer support ticket (CS Ticket) is the one to communicate with the client.
In case of a bug, the CS ticket is linked to a BUG Ticket.


The Automation:
The Status of the CS ticket is changing according to the status transition go the BUG ticket.

The last part of the Automation I'm trying to implement:
When the status of the BUG ticket is set to 'Complete.'
Set the Status of the CS ticket to 'Done' and Set the Resolution code to "Code Fix."

While I can Set the Status of the CS ticket to 'Done,' I cannot see a way to set the resolution code to "Code Fix."

Thank you again, David, for your time and thoughtful adviceScreen Shot 2019-10-08 at 4.21.48 PM.png

Hi @Nir Malchy 

Now that I understand your scenario, I can tell you that this is a limitation of JSD.

For some reason, Atlassian didn't include the Resolution field to be set by JSD Automation.

This is a serious limitation which forces people to pay extra for Add-ons to do this job for them.

Here's is the JSD cloud issue where you can vote and comment to push this in pipeline for fixing JSD:

https://jira.atlassian.com/browse/JSDCLOUD-3701

Like # people like this

Hi Agin Gil! We ended up getting the Automation plug-in as a part of Jira. I wanted to seek some more advice from you. 

I'd like to create an Auto response that goes out to the report when a ticket is created:

After hours (I have an SLA which is weekdays 7:00 AM to 5:00 PM calendar) - so basically anything that comes between 5:00 PM and 7:00 AM.

 

Holidays - days that are designed as holidays in the same calendar.

Any guidance will be much appreciated. Thank you!

Hi Nir,

you need to use:

1. Trigger: Issue created

2. JQL Condition: created >= startOfDay(-7h) AND created <= startOfDay(17h)

3. Action: Comment on issue - Add your comment to the customer.

4. Click on the drop-down of More Options under the Comment on Issue action and tick the box 'Share with customer'.

 

Please validate the JQL that filters the correct issues you want.

Like Nir Malchy likes this

Thank you!

So I tested that and it activated in the 'on hours'.

I wonder if I should be more like an 'OR' since it is "Before 7:00 AM OR After 5:00 PM".

So I am testing "created <= startOfDay(+7h) OR created >= startOfDay(+17h)"

Thank you @Gil 

Thak you @Zack Foster and @David Sweeney 

 

Now, that I have the Automation for Jira as a part of the service desk, how would you create an auto-response that is for days that are designated as 'Holidays' - days that are designed as holidays in the same calendar?

How does this work with off-hours? Meaning, what is someone write in at 6:00 PM, which is always an 'off-hour', on a day that is designated as a holiday in the calendar?

 

Thank you again for all your help and support.

you can try to use the withincalendarhours() function. if you search for all issues which are NOT withincalendarhours() that should yield all tickets that are outside of calendar hours.

I haven't tried it but I believe that anything that falls over a weekend or a holiday is essentially NOT withincalendarhours()

I think this will cover off-hours as well.

Use JQL with this function and see if it shows you what you expect to find.

You might also try to use an OR function to combine created >= startOfDay(-7h) AND created <= startOfDay(17h) with withincalendarhours() to cover all bases.

But I suspect withincalendarhours()  is sufficient to cover all bases.

Then use my above automation example to build upon this function.

For those who are interested in a tutorial about updating the resolution field with jira automation, check this guide: https://www.youtube.com/watch?v=S2ary5YG-7w&t=3s 

Suggest an answer

Log in or Sign up to answer
TAGS

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