youngmon/atlassian-qna huggingface dataset:
How can I send an E-Mail of all due Issues to Project lead
Asked by FCS-Monsun-Admin:

Hi,

i'd like to send an Mail to the project lead of all due issues.

Can you help me. I have create the global automation:

![Pr1m6emZwZ.png](https://community.atlassian.com/t5/image/serverpage/image-id/342809i51B41FAF476204F5/image-size/large?v=v2&px=999 "Pr1m6emZwZ.png")

The smart value is:

![iB4fvgXEEq.png](https://community.atlassian.com/t5/image/serverpage/image-id/342810i7E4EC60DD8C2B7D0/image-size/large?v=v2&px=999 "iB4fvgXEEq.png")

The Mail Configuration is:

![KA18HBKVzl.png](https://community.atlassian.com/t5/image/serverpage/image-id/342811iD1E3B5BE5FAA362D/image-size/large?v=v2&px=999 "KA18HBKVzl.png")

The Mail-Body is:

![fyUNembCus.png](https://community.atlassian.com/t5/image/serverpage/image-id/342812i1D777D23DDE3CA1C/image-size/large?v=v2&px=999 "fyUNembCus.png")

The Error is:

The specified Smart Value could not be resolved to an object.

Thank you for your help

Steffen


Answers:
author: FCS-Monsun-Admin
body: Hi,

I'am new in Jira and I did'nt understand the solution. Can you help me with my Problem?

Thank you so much.

Steffen


author: David Friedrich
body: Hi [@FCS-Monsun-Admin](/t5/user/viewprofilepage/user-id/5572718) ,

the issue is probably that distinct will not work with lookup.  
Please see this community post for a possible solution:  
<https://community.atlassian.com/t5/Jira-questions/Automation-distinct-and-formatted/qaq-p/2017250>


Tags: automation

cloud

jira-service-management

jira-service-management-cloud

jira-software
Upgrading and migrating Service Management Insight Objects/Data from version 4.16.0
Asked by Kathy Dickason:

We have Jira Insight version 4.16.0 running on a server. We want to move this to a new server (and upgrade it). Are there any procedures or tools for moving the data? Do we upgrade the existing server to the latest Service Management version then Backup/Restore the entire Insight DB? Are there any tools that we should consider to facilitate a move to another server? Any doc or info is appreciated!


Answers:
author: Dave Rosenlund _Trundl_
body: Hi, [@Kathy Dickason](/t5/user/viewprofilepage/user-id/3909439) ?

You cannot. The Atlasian Server platform was sunsetted in February.

You'll need to migrate to Atlassian Cloud or Data Center.

<https://www.atlassian.com/migration/plan>

-dave

comments: author: Kathy Dickason
body: Sorry, mis typed. It's installed on a SERVER it's using Service Management on Data Center


Tags: insight

jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

server
Test Execution Status Change to IN PROGRESS when linked Test changes from TO DO to Passed
Asked by Stephanie Hansen:

Looking to set up automation in one of my projects.

When the first linked Test moves from TO DO to Executing or Failed or Passed, want the Test Execution Status to move from Open to In Progress.

Using a Software Project within Jira Cloud with Jira Xray.

Have not successfully created any automation here to start.

Thanks!


Answers:
author: Bill Sheboy
body: Hi [@Stephanie Hansen](/t5/user/viewprofilepage/user-id/4231187)

How are you implementing tests in your project: with a marketplace addon or with Jira issues your team added?

Are you using Jira Cloud, or the Server / Data Center version?

What have you tried thus far to solve this need? For example, if you have started an automation rule, please post images of your complete rule and the audit log details showing the execution. Those will provide context for the community to offer suggestions.

Kind regards,  
Bill

comments: author: Stephanie Hansen
body: Thanks....updated a few details in original ask. Have not had any luck on it to post an image...


author: Bill Sheboy
body: Thanks for that information, Stephanie.

I recommend taking a look at the documentation page for the Xray addon. That will probably show examples of using automation rules with their tool.
Can I only make Resolution Code/ Attribute editable & Entire ticket non editable
Asked by Prerana Bhatt Koulmane Sathyanarayana:

Hello team,

We have the Resolution Attributes like done, won't do etc. that will appear once the ticket is moved to the Resolved status.

I want to make sure sure all the fields like description etc are uneditable once the ticket is in resolved status. I tried using jira.issue.editable = False which would stop me from editing/changing the resolution attribute as well.

Can I make all the fields unditable \& only keep the resoloved Status \& it's attributes as Editable ?

Thanks in Advance


Answers:
author: David Friedrich
body: Hi [@Prerana Bhatt Koulmane Sathyanarayana](/t5/user/viewprofilepage/user-id/5444594) ,

I'm afraid that is not possible without apps (ie Scriptrunner Behaviours) or some workflow adjustments which are possibly exaggerated:

You could add a transition which refers to itself in the resolved status. It does not change the status, but offers the Resolve screen that you also have in the current transition to Resolved. This means that the solution field can be edited in the transition, but no changes can be made in the Resolved status. You can call the transition to itself "Change Resolution", for example.

![2024-08-20 22_49_58-Clipboard.png](https://community.atlassian.com/t5/image/serverpage/image-id/342821i455649AC511C21FD/image-size/large?v=v2&px=999 "2024-08-20 22_49_58-Clipboard.png")![2024-08-20 22_51_07-Bearbeiten ? ITSM_ Service Request Fulfilment workflow for Jira Service Manageme.png](https://community.atlassian.com/t5/image/serverpage/image-id/342822i76B7AC0CB01C4148/image-size/large?v=v2&px=999 "2024-08-20 22_51_07-Bearbeiten ? ITSM_ Service Request Fulfilment workflow for Jira Service Manageme.png")

comments: author: Prerana Bhatt Koulmane Sathyanarayana
body: Thank you David, this has been my observation as well. Thanks for confirming.

How do I create a Loop? like from Resolution to Resolution like you have shown above?


author: David Friedrich
body: Simply edit the workflow and create a transition from status "Resolved" to status "Resolved". Give this transition the same screen containing the resolution field as your original transition to status resolved already in place.


author: Prerana Bhatt Koulmane Sathyanarayana
body: Thanks David, Appreciate your answer \& insight.


Tags: cloud

jira-cloud-administration

jira-service-management

jira-service-management-cloud

not-applicable
I want to copy a value from a custom select list into the fix version field using Jira automation
Asked by Troy Johnson:

I have a custom select list that has the same information in it as the releases that are available in the fix version field (I won't go into the details of why). I want to be able to set the fix version field based on the version that is selected from my custom select list field. I have not been able to find the correct smart value to use.

The select list field name is "Program Increment (PI)"

The following snippet shows how I'm trying to set the Fix Version using the selected value from the Program Increment (PI) field. When the automation is run, the Fix Version field is left empty.

![automation.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/269416i5CC54EFFB3B7782B/image-size/large?v=v2&px=999 "automation.jpg")

The question is, can it be done and if so how?

Thanks in advance,

Troy


Answers:
author: Bill Sheboy
body: Hi [@Troy Johnson](/t5/user/viewprofilepage/user-id/1783692)

From the rule image you show, I expect the symptom you are seeing is the Fix Version is empty/null after the rule runs, correct? If so...I wonder if your smart value for the custom field is incorrect.

Smart values are name, spacing, and case-sensitive. To learn the correct smart value for your field, please use the how-to article below. Essentially you identify an example issue with your field, call the REST API with a browser, and then search for your field to find the correct smart value.

<https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/>

Kind regards,  
Bill


author: Evgenii
body: Hi, [@Troy Johnson](/t5/user/viewprofilepage/user-id/1783692)

Just use version name, it will make it.

Made fast example, it will explain my idea.

![Screenshot_34.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/269417i6E7487C2E9736B99/image-size/large?v=v2&px=999 "Screenshot_34.jpg")![Screenshot_35.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/269418i172B7665DC798628/image-size/large?v=v2&px=999 "Screenshot_35.jpg")
Project pages issue
Asked by Oleksandr Kashchenko:

Hello there!

After last week Jira maintenance, we got a bug.

Project pages (project docs in one place with Confluence pages), when u click on any project item, open new window to create a new page, after u\`re closing it - automatically opens what\`s u\`re really pressed to. Still cant find any solution.


Answers:
author: Dave Mathijs
body: Hi [@Oleksandr Kashchenko](/t5/user/viewprofilepage/user-id/5260382)

You mention that you are on Cloud. Are you referring to Jira Software Cloud? Because your question is posted in Atlassian Automation.

What maintenance are you referring to.

What do you mean by "project item"? Can you share a screenshot?

comments: author: Oleksandr Kashchenko
body: [Like this](https://monosnap.com/file/yn6F8pUhTXcZs3mgKsKJ7xJTaY1wux)

But somehow, it fixed by itself


Tags: confluence

jira-cloud

page

project
Automation question about custom field null check
Asked by Jason Liu:

When workflow status change, New-In Progress, we want to check if 3 custom fields are null or not. If they are null, I need an automation to change another field's value to "No". If not null, then check the other field value as "Yes". Just like this kind of function. May I know how I can do this?


Answers:
author: John Funk
body: Duplicate
Smart value for Bitbucket PR from Jira issue
Asked by Kunal Keshav Singh Sahni:

Hi,   
I am creating a workflow such that when an issue transitions to Done state, a message needs to go to Slack.   

Now considering in my case, all issues will be linked to Bitbucket.   
that means, in the Jira ticket I am able to see Pull requests, build etc. because the branch names and Pull requests all start with JIRA key.   

I want to send the associated pull requests of this issue and the reviewer name of the PR as well in slack.  

Not able to get these two values using smart-values. Kindly help.  

PS : I tried {{issue.development\[pullRequest\]}} but it did not work  


Answers:
author: Vedant Kulkarni
body: [@Kunal Keshav Singh Sahni](/t5/user/viewprofilepage/user-id/5269889) This could be configured from either way that is from Bitbucket to Slack. PR details and Issue details can also be transferred as notification as described here [Integrate Bitbucket Cloud with Slack \| Bitbucket Cloud \| Atlassian Support.](https://support.atlassian.com/bitbucket-cloud/docs/integrate-bitbucket-cloud-with-slack/)

I hope this could help you.

comments: author: Kunal Keshav Singh Sahni
body: [@Vedant Kulkarni](/t5/user/viewprofilepage/user-id/1734051) can I get them as smart-values in Jira workflow for Send Slack Message trigger in Jira workflow


author: Vedant Kulkarni
body: [@Kunal Keshav Singh Sahni](/t5/user/viewprofilepage/user-id/5269889) , You can't get in workflow smart values. However, you can use Jira Automation and make use of development smart values listed here [Jira smart values - development \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--).

I don't see the reviewer/approver, but you can get Pull Request detail which can be transferred to Slack.

![automationSlackIntegration.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/269335iFE6E1817956D110B/image-size/large?v=v2&px=999 "automationSlackIntegration.JPG")


author: Kunal Keshav Singh Sahni
body: Hi [@Vedant Kulkarni](/t5/user/viewprofilepage/user-id/1734051) , thanks for the answer, I am using the same workflow,

{{issue.development}} gives me some values but the JIRA smart values - development can only be used with following flows \[**PR created, declined, merged** \]![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/269338i4CA58ABC31AA2C09/image-size/large?v=v2&px=999 "image.png")  

So I am wondering how to use these in my usecase.   

<br />

<br />


author: Vedant Kulkarni
body: [@Kunal Keshav Singh Sahni](/t5/user/viewprofilepage/user-id/5269889) ,

Sadly, we cannot proceed with Automation and there is already a similar thread [Solved: How to get pull request creator / author as a smar... (atlassian.com)](https://community.atlassian.com/t5/Automation-questions/How-to-get-pull-request-creator-author-as-a-smart-value-in-Jira/qaq-p/1592660).

However, as an alternative approach, you could try calling Jira/Bitbucket API but may need an additional editor such as Scriptrunner for Jira Cloud.
Automations: Date isAfter operator not returning a truthy type?
Asked by Nicholas Coriale:

Hello, I am working on an automation rule using smart values. I am trying to check if a date is after another date, and then use the result of that comparison in an or operator. However, every time I use the result of .isAfter in a conditional check, it acts as if it is false, not true.

If log the result of **{{issue.sprint.endDate.isAfter(issue.Target End.toDate)}}** I get **true**

However if I log the result of {**{equals(issue.sprint.endDate.isAfter(issue.Target End.toDate), true)}}** I get **false** .   

I am not sure why true does not equal true? Per the documentation it returns the value true, not a string of true, but I tired a string comparison and that returns false as well.

My ultimate goal is to see if target end is NULL OR if target date is before the date of the issues sprint end.   

{{or(equals(issue.Target End, NULL), issue.sprint.endDate.isAfter(issue.Target End.toDate))}}


Answers:
author: Darryl Lee
body: Maybe **equals** doesn't recognize booleans?

Cause I think it might work without having to explicitly evaluate for true?

```
{{#if(or(issue.Target End, NULL), issue.sprint.endDate.isAfter(issue.Target End.toDate))}}YUP{{/}}
```

comments: author: Nicholas Coriale
body: I tried using isAfter with IF, and it never evaluated true and ran what was in the if.
Is it possible to have creating a sub-task as a trigger?
Asked by Joe Milner-Smith:

I would like to have some automation created that when a sub-task is created it automatically changes the priority of the parent task to 'Blocked'. Is this possible?


Answers:
author: Collista Lewingdon
body: Assuming you have blocked as a priority option (I do not). You would create the automation like this, when the issue is created ,and the issue type equals sub-task, for the parent of the subtask, you would then: edit the issue fields priority and select from the final screen "Blocked"

![Parent task blocked.png](https://community.atlassian.com/t5/image/serverpage/image-id/268161iF0A4D5E4ECF9CEDA/image-size/large?v=v2&px=999 "Parent task blocked.png")![priority.png](https://community.atlassian.com/t5/image/serverpage/image-id/268162i7EE31901CF52C0BB/image-size/large?v=v2&px=999 "priority.png")

If you find my answer helpful, please accept it. If it does not please let me know and I can help you troubleshoot further.


author: Tim Perrault
body: Hi [@Joe Milner-Smith](/t5/user/viewprofilepage/user-id/5265028)

I would use the issue created trigger, but then add conditions to match only the sub-task. From there you can add a branch for the parent and then an action to transition that issue.

comments: author: Joe Milner-Smith
body: Thank you, this worked well
How to sum up on a higher level than epic for orginal estimate
Asked by Peer Eland:

Hi

We are using an advanced roadmap and have implemented a hierarchical structure as follows:  
Project ? Feature (Epic) ? User Story ? Subtask  
I have successfully automated the calculation of the total "original estimate" from  
Subtasks to User Stories and from  
User Stories to Features (Epics).  
However, I am currently struggling to find a solution for aggregating orginal estimates from Features to the Project level. If anyone has found a resolution to this issue, I would greatly appreciate your assistance.

In advanced thanks

Peer


Answers:
author: Peer Eland
body: Hi Again

I have now got a bit further   
![Automation.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/268635iEA270103393E0739/image-size/large?v=v2&px=999 "Automation.PNG")

However, I can only get it to work by manual trigger when i have the specific issue open..  
What I realy want's is to get it autorun whenever one of my epic has been updated with a new "original estimate" without have to have the "project issue" open.

In the picture the "Udviklingsepic" equals "project issue"

best

Peer
Branching on JQL linking issues excluding Trigger Issue
Asked by Andrea_Lawrence:

I have a parent issue that has 4 sub-tasks assigned to different people. I've created an automation using a manual trigger and I'm running it off of one of the sub-tasks.

Parent ticket is SEC-8590

![Screenshot 2023-07-11 at 10.09.18 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/268054i370F416AC4AD5367/image-size/large?v=v2&px=999 "Screenshot 2023-07-11 at 10.09.18 AM.png")

I'm trying to accomplish the following:

* create new issue in a different project
* get specific list of issues
* link each issue in list to created issue

The list of issues should be all open sub-tasks and the parent of the triggering issue. So if I run the automation from SUB-1 (SEC-8591), the lookup list should return 4 issues: SEC-8590 (parent), SEC-8591, SEC-8592, and SEC-8593.

Since I'm attempting to run from a sub-task, I am using the following query to get my list of issues:

```
(linkedIssue = {{issue.key}} {{#if(exists(issue.parent))}} OR linkedIssue = {{issue.parent.key}}{{/}}) AND status != "Done"
```

I attempted to follow the advice in the comments [here](https://community.atlassian.com/t5/Jira-Software-questions/How-to-assing-linked-issues-from-JQL-on-a-Create-Issue-event-on/qaq-p/2043699) but when I run the automation on a subtask, it's only linking 3 issues and excluding the trigger issue despite it being returned as a lookup result. Am I missing something?

I have the Lookup action with log as a results check which returns 4 issues but the JQL using the same query is only returning 3 issues and the trigger issue is missing.

![Untitled 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/268069i27AF46A0AAB511F8/image-size/large?v=v2&px=999 "Untitled 2.png")


Answers:
author: Bill Sheboy
body: Hi [@Andrea_Lawrence](/t5/user/viewprofilepage/user-id/5222969)

I believe that is the built-in behavior of rules to prevent potential errors/looping: the trigger issue is excluded from some branching scenarios.

A work-around is to add another branch to add that link explicitly. This can be done in two possible directions, so pay attention to your link direction. This could be...

* branch: on current issue (which would be the trigger)
  * action: link to {{createdIssue.key}}

or...

* branch: on most recently created issue
  * action: link to {{triggerIssue.key}}

I believe you can do the first one with a project-scope rule, and the second one would require a global/multi-project scope rule as you are creating an issue in a different project.

Kind regards,  
Bill

comments: author: Andrea_Lawrence
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) thank you for explaining, I wasn't aware that the trigger issue is skipped in branching actions. Since my end goal is to link everything to a new issue I'm creating, I modified my Create Issue action and added a link to the trigger issue. This way I didn't have to add anymore steps to my rule. Every test I've run since then has has been successful.

Thanks again for this information!
Transitioning Issue to Done but Subtasks Remain Open
Asked by Becky Drake:

How can I create an automation that will put the parent back to the previous Status if the Subtasks are not marked as Completed?


Answers:
author: Arkadiusz Inglot
body: You have not specified a trigger for that rule.  

In addition - you would like to add IF STATEMENT before "For loop" that checs if current status is the only one you want move back from. Just to make sure that automation will always go one status back instead of infinity. Combain it with proper workflow.

Just type destination status: **{{issue.previous status}}**

![automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/267833i38FBAFCFB9127C70/image-size/large?v=v2&px=999 "automation.png")
if the linked issue is not completed, it will push the start date back?
Asked by MURUGESH S:

if the linked issue is not completed, it will push the start date back?


Answers:
author: Rudy Holtkamp
body: Hi [@MURUGESH S](/t5/user/viewprofilepage/user-id/5201111) ,

No in the basis the links are just semantical links, there is no logic behind the links. So irrespectible of what you do with one issue, it does not affect the linked issue. You can only see the description, status, priority and assignee of the linked issue in the original one.

comments: author: Rudy Holtkamp
body: However you can create automation which will change e.g. the due dates when the primary issue is past it's due date.


author: MURUGESH S
body: Thank you for your answer
Change Name of Object via Automation based on MULTIPLE Selections
Asked by Ben:

Hi,

I have an automation create an object in Asset:

When the customer selects products in the portal, an object is created in Asset that shows his order. The object "Order" has among others the field "Name".

The customer can select different products in the portal. The product selection also uses objects from Asset. The field where the customer can select the products is an Asset Object field with MULTIPLE selection.

Now I want to change the name of the created object "Order" of the customer. It should contain the names of the products. My problem is that this works for 1 product. But as soon as the customer has selected MULTIPLE products, still only the name of ONE product is used.

Somehow this is clear, because I only enter the smart-value {{Product.name}} for the "name" field of the created object via automation. How can I achieve here that the multiple selection is considered?

Kind regards,

Ben


Answers:
author: Mauricio Heberle
body: Maybe you are looking for this?

<https://confluence.atlassian.com/jirakb/copying-values-between-asset-object-field-and-multi-select-custom-field-using-automation-1141504943.html>


Tags: cloud