youngmon/atlassian-qna huggingface dataset:
Link issue to existing EPIC
Asked by jbeg:

Hope someone knows a way to resolve the following task:

**Trigger:** Rule is triggered when an issue is transitioned from status A to B.

**What should the rule do:** If an EPIC (in this case with the same name as the issue) exists, link the issue to the existing epic.

**Problem:**Via edit issue and selecting the field Epic-Link i can only choose

* Current issue
* Parent issue
* Epic issue
* Trigger issue

I assume that none of these is the right one . So I figured that i could use the advanced option to manually set the epic-link - but this only works with the issue key of the epic - not the name.

```
{
  "fields": {
  "Epic-Link": "{{issue.summary}}"
  }
}
```

So, either I need a way to get the Epic issue key or a different approch to this problem.


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

For a question like this, please consider posting an image of your complete rule and an audit log entry from a failed run. That will provide the community some context to try to help. Thanks!

You do not indicate if you are using Jira Cloud or Server/Data Center, so I am going to assume for now "Cloud"...

* Trigger: issue transitioned from A to B
* Action: lookup issues on JQL to find the desired epic
* Condition: {{lookupIssues.size\|0}} = 1
* Action: edit the issue to set the epic link to {{lookupIssues.key}}

When adding the value to the edit, type in the value {{lookupIssues.key}} and it will appear below the field, then select it to use the smart value.

Best regards,

Bill

comments: author: jbeg
body: Hi Bill,

thank you very much for the reply. We are using Jira Server - so if I am not mistaken, the lookup feature is not available.

This would probably solved my quesion the way you described it. Unfortunately this feature ist not available on server <https://jira.atlassian.com/browse/JIRAAUTOSERVER-53>

Are there any other solutions?


author: Bill Sheboy
body: Hi [@jbeg](/t5/user/viewprofilepage/user-id/3537386)

For server without Lookup Issues, how about a slower work-around using the bi-directional nature of issue links...

* Trigger: issue transitioned from A to B
* Branch: on JQL to find the desired epic matching your criteria
  * Action: add a link of a type you do not use to the trigger issue. Perhaps, split from/to
* Action: re-fetch to reload the trigger issue's data and see the added link
* Action: edit issue to set the epic link to the key value in the specific link added. You may need to use a regular expression to yank out the key

Please note that I haven't tried this as I do not have server version, so let me know how this works (or doesn't ;\^)

__Bill


author: jbeg
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) ,

this was a quality answer! Thank you very much!

It is quite a workaround and complex for just such a simple task - but for the server version quite nessescary as it looks.

I got the link key from {{issue.issuelinks.first.outwardIssue.key}} so no regex magic was needed.

Thanks again for your help
I like to send notifications to Slack when the Tempo Team field is updated on an issue
Asked by Ulrika Eriksson:

Can not search for Team change "Team" in the search field/JQL.

Any one having any idea how to set up this automation/webhook?


Answers:
author: Bill Sheboy
body: Hi [@Ulrika Eriksson](/t5/user/viewprofilepage/user-id/1196205)

Have you tried to create an Automation for Jira rule, triggered on the field change, and then sending the notification to Slack?

Please look here for more information on that approach:

* <https://www.atlassian.com/software/jira/guides/expand-jira/automation>
* <https://www.atlassian.com/software/jira/automation-template-library/slack-ms-teams>
* <https://www.atlassian.com/software/jira/automation-template-library#/label/all/1453>
* <https://community.atlassian.com/t5/Automation-articles/Jira-Automation-all-the-resources-you-need-in-one-page/ba-p/1388465>

Best regards,

Bill

comments: author: Simmo
body: [@Ulrika Eriksson](/t5/user/viewprofilepage/user-id/1196205) the approach suggested by Bill is the way to go. Let us know if you run into any issues.


author: Ulrika Eriksson
body: I guess the JIRA rule, triggered by the field change is not valid for Automation Lite? I only got the Issue updated, Is it the same?


author: Simmo
body: Hi [@Ulrika Eriksson](/t5/user/viewprofilepage/user-id/1196205),

I didn't realise that you were on server. You should have the Value Changed Trigger available. Are you on the latest version?

Cheers,

Simeon.


Tags: jira-service-desk
When field value changed - use regular expression
Asked by tal:

Hi, I'm trying to send an email upon custom field change value to 'Yes' with no success. I guess the regular expression is not correct?

this is what I'm trying to do:

Field value changed: {#toc-hId--1244628761}
-------------------------------------------

Fields to monitor for changes\*

#some custom field

to :

All issues operations

Advanced compare condition: {#toc-hId-1242884072}
-------------------------------------------------

{{fieldChange.toString}}

Exactly matches regular expression

"Yes"

Send an email

HELP!


Answers:
author: Simmo
body: Hi [@tal](/t5/user/viewprofilepage/user-id/4246771)

Could you share a screenshot of how you have configured the Advanced compare?

I suspect that you need to change your condition to be just the condition "contains" and if you have quotes around the yes then remove those as well.

Also, this is case sensitive as well so your case needs to match, or you need to add a .toLowerCase on your smart value.

Cheers,

Simeon.

comments: author: tal
body: ![Screen Shot 2021-05-25 at 11.48.51.png](https://community.atlassian.com/t5/image/serverpage/image-id/144843iC6BD3A78859DB249/image-size/large?v=v2&px=999 "Screen Shot 2021-05-25 at 11.48.51.png")


author: Simmo
body: Hi [@tal](/t5/user/viewprofilepage/user-id/4246771)

It looks like you still have the yes wrapped in double quotes in your advanced compare?
Endpoints to get the list of linked TestRail cases to a Jira ticket
Asked by Prachi Pandey:

Hi,

I wanted to know if there are specific endpoints to get a list of linked TestRail cases using Jira API.

Goal is to get the list of test rail test cases associated with a Jira ticket.


Answers:
author: Karen Espolon
body: Hello, is there a workaround to meet this requirement? I also need to query JIRA ID and the linked test cases in order to build an RTM in JIRA.

Thanks,

Karen


author: Bill Sheboy
body: Hi [@Prachi Pandey](/t5/user/viewprofilepage/user-id/4151087)

I doubt that is possible from the *Jira REST API* as Test Rail is a marketplace addon product, with its own API. Please consider contacting that vendor's support directly for the information:

[https://marketplace.atlassian.com/apps/1213701/testrail-integration-for-jira?hosting=cloud\&tab=support](https://marketplace.atlassian.com/apps/1213701/testrail-integration-for-jira?hosting=cloud&tab=support)

<br />

Best regards,

Bill


Tags: cloud
Change value of an Insight field
Asked by Koczka Bence:

I have a *InsObj* Insight object with the following fields:

*Key, Name, TestField*

All 3 are string type fields.

My goal is to set up a manual trigger from an issue, which changes the value, of the referenced*InsObj* 's*TestField* to "*whatever* ".  

I set up an Edit Issue Action in a automation rule with the following Json:

```
{
"objectTypeId": 689,
"attributes": [{ 
"objectTypeAttributeId": 2727,
"objectAttributeValues": [{
"value": "whatever"
}]
}]
}?
```

(This does change the *TestField*'s value if it is sent through an Update Insight field API request)

An InsObj is referenced to the issue in a custom field, as it is shown on this picture:

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

But when the manual trigger is triggered, the automation rule's audit log shows "some errors", with the following message:  
"No fields or field values to edit for issues (could be due to some field values not existing in a given project):AUTO-3"

How can I make my Insight object's certain field available to editing in this project?

Any idea would really much be appreciated.   
Thanks in advance!


Answers:
author: Gareth Cantrell
body: Hi [@Koczka Bence](/t5/user/viewprofilepage/user-id/4289577)

The Edit action will only allow you to update the object reference within the issue. It won't allow you to update the attributes of an Insight object.

To do that, you will need to use the Send web request action to post the update to the Insight REST API endpoint.

comments: author: Koczka Bence
body: That makes sense, thank you!


author: Koczka Bence
body: Upon sending the request via *Send web request action* the response is:   
"401 Client must be authenticated to access this resource."  
Here is the configuration of the action (the Authentication is valid, this request works flawlessly in Postman)  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/144224i72D07E82039C38C2/image-size/large?v=v2&px=999 "image.png")  

Any ideas?


author: Gareth Cantrell
body: Try changing the header "Authentication" to "Authorization" ?


author: Koczka Bence
body: Wow, so close yet so far! Thanks a bunch!


Tags: custom-field

insight

update
Trying to use smart values
Asked by Raoul Kaiser:

So when I send my message I am using the following for the message body.

Following issues have been assigned but not started:  
{{#lookupIssues}}  
\* {{key}} - {{issue.assignee.displayName}}  
{{/}}

I only get the issue key though. The assignee name does not appear. Why?

bonus question: is there a way to get the assignment date?


Answers:
author: Gareth Cantrell
body: Hi [@Raoul Kaiser](/t5/user/viewprofilepage/user-id/518880)

Have you tried using {{assignee.displayName}} instead of {{issue.assignee.displayName}} ?

"issue" is not a valid key in the {{#lookupIssues}} smart value.

The best you can get in the {{#lookupIssues}} is the issue's last updated date, using {{updated}}, however this may or may not be the date the assignment took place.

comments: author: Raoul Kaiser
body: That worked for me. Thanks for the help.
SubTasks Closed & Parent ticket Update
Asked by srilatha konda:

Team.

We have some subtasks for ticket, on closure of some subtasks, need to update custom field value in parent ticket.

I followed the article : <https://community.atlassian.com/t5/Automation-questions/How-can-I-transition-the-parent-when-all-subtasks-are-resolved/qaq-p/159407>.

But in this, if all subtasks are Done, than transition the parent ticket. So can we check for some subtasks are Done, instead of all subtasks are done by adding subtask summary. Is it possible in Jira Automation.

Eg: Parent ticket has 4 subtasks, ( Summary of Subtasks - Sub Task 1, Sub Task 2, Sub Task 3, and Sub Task 4)

On Closing Subtask 1 and Subtask 3 subtask, parent ticket should be updated.

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


Answers:
author: wwalser
body: Unfortunately I too am not entirely sure of what you're asking. Specifically:

\> by adding subtask summary

By adding subtask summary to what? Or do you want to add a subtask summary to the parent perhaps?


author: Alexander Pappert
body: [@srilatha konda](/t5/user/viewprofilepage/user-id/4070001) I don't really understand your question, do you want to

* transition the parent, when all subtaks are closed

then the rule should work

* transition the parent, when sub1+3 are closed (even if 2+4 are open)

you write "*On Closing Subtask 1 and Subtask 3 subtask, parent ticket should be updated*" and do not say something about the status of 2+4

is ist always 2+4, or depending on specific subtaks issue type?

* just list up, how many subtaks you have and the number of the not closed ones

because you write "*So can we check for some subtasks are Done, instead of all subtasks are done by adding subtask summary.*"

<https://community.atlassian.com/t5/Jira-questions/Searching-for-subtasks-of-parents-that-meet-certain-criteria/qaq-p/39736>
How to change Request Type in Automation for Jira - Server
Asked by Solnet Solutions:

Hi All,

I'm working on Automation pipeline (using Automation for Jira - Server) to change some values including "Request Type" in the ServiceDesk incidents when they are creating.

I could find all the fields which need to be changed except "Request Type". Is there a way I can get "Request Type" field?

![Capture.PNG](/t5/image/serverpage/image-id/142462iAE210CB77C6A0F6F/image-dimensions/893x484?v=v2 "Capture.PNG")

kind regards

Lowrence


Answers:
author: Darryl Lee
body: On Jira Cloud (you tagged this question with \[cloud\], which is why I saw it), when we try to use Request Type, we get this message:

![Screen Shot 2021-05-06 at 7.40.12 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/142464iEAD05CCA229C87F8/image-size/large?v=v2&px=999 "Screen Shot 2021-05-06 at 7.40.12 PM.png")

It looks like that error message hasn't made it way to Server, but apparently you're not allowed to change it either.

The workaround on Cloud, which may or may not work in Server, is to use "Legacy" Automation.

Something along the lines of this rule, which is from an [answer](https://community.atlassian.com/t5/Jira-Service-Management/Automate-Request-Type-change-upon-Issue-Type-change/qaq-p/1271735#M65110) by [@Nathan Given](/t5/user/viewprofilepage/user-id/177473):

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

Sorry, don't have time to fire up my test Server instance to confirm this will work there, but I'm fairly confident it should.


Tags: cloud
Having one project create an issue in another project (dynamically)
Asked by Frank Cannata:

We have a Lead Generation Project in JIRA that we use to track software projects as they move through the pipeline. Each issue that moves through the board represents the 'brief' and references to everything across our business - especially finance. The issue in this project has a system field that allows a 'destination project' to be selected. Sales and Project Managers live here.

We manage the execution of that work in separate projects. We use Epics in the roadmap to map back to the issue in the Lead Generation Project. And Project Managers, Developers and QA live here.

When an issue transitions in the Lead Generation Project to a certain status I need to create an epic in the 'destination project' based on the data provided in the Lead Generation Issue. This technically authorizes a small development project to start and have the ability to log time.

Doing this manually is error prone, and allows people to work outside of the business procedures.

Everything I can see in Automation allows me to pre-define the destination project, but since we have a lot of activity that requires everything to be kept separate due to conflicts, it needs to be driven by the data the issue has - the user selected destination project.

Is this possible?

PS. Trying to avoid a plug in and additional cost at the same time :)


Answers:
author: Darryl Lee
body: So the UI is a little wiggy, but when you have a **Create issue** action you can actually type in the Smart Value in the **Project** field:  

(If your field is a select field, you might need to use {{issue."Destination Project".value}})

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

comments: author: Frank Cannata
body: thank you!!!!!


author: Sema YILDIRIM
body: Hello,

I have a field "Select List" and in this field there are project names. When creating an item, I want it to create an item according to the project name selected here. How can I do it?

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

Thanks,


author: Darryl Lee
body: There's a few possible reasons for the "Could not find create meta data for project/typeid" error:

* The [scope](https://support.atlassian.com/cloud-automation/docs/create-and-edit-jira-automation-rules/) of this project is not Global or does not include all the possible projects in your custom field's drop down.
* Issue type "Support" may not be valid for the CORETECH - DIVA project.

I'm betting on the scope issue.

References:

* [I am getting an error when I try to do a rule automation](https://community.atlassian.com/t5/Jira-Software-questions/I-am-getting-an-error-when-I-try-to-do-a-rule-automation/qaq-p/1925314)
* [Simply automation error](https://community.atlassian.com/t5/Jira-Software-questions/Simply-automation-error/qaq-p/1458621)
Trigger an action on a multi-user picker "newly added values"
Asked by mlopez-preference:

Hello all,  

I have a multi-user picker field called "Followers". When a user is added to this Followers list, I want to automatically add it to the watchers list. I figured out how to do that by triggering the action when the field Followers changes on the smart value {{issue.follwers.name}} .  
The problem is that the action applies to all the users in the Followers list every time it triggers. If a user decides to stop watching the issue and later on a new user is added to the Follwers list, all the followers are added to the watchers, and so is the user that decided to stop watching. I need to apply the action only to "newly added users to the follwers list". Is there a way to figure out who these users are using smart values?   

Thanks in advance!


Answers:
author: Darryl Lee
body: While there is a [{{changelog}} Smart Value](https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvaluesgeneral--changelog) that should be able to show you what you're looking for, it unfortunately only works for **summary** , **issuetype** , and **status**.

There is an open Improvement request for this:

<https://codebarrel.atlassian.net/browse/AUT-407>

Alas, we cannot vote for those.


Tags: smart-value

user-picker
Jira api to access tests associated with a ticket
Asked by Prachi Pandey:

Hi,

I'm trying to get the list of all testcases mentioned under 'Traceability' for a given ticket. We are using Zephyr for test case management. What apis can I use to access the list of linked testcases to a given ticket. Thanks!


Answers:
author: Ed Gaile _Atlanta_ GA_
body: If you have Zephyr installed, have you looked at using the Zephyr REST API? [Zephyr REST API](https://zephyrdocs.atlassian.net/wiki/spaces/ZFJCLOUD/pages/1925120024/REST+API)


Tags: cloud
Import Automation Rule without being Global Admin
Asked by Rob Wolfe:

I know that it is possible to copy or import rules as a global admin.   
I am just a project admin but on multiple projects. As a result I have the ability to copy rules within each of those projects but I need to get a global admin to copy between projects.   
I can export a rule but there seems to be no way to import it unless I am a global admin.  

Am I just missing something here?

Thanks

Rob


Answers:
author: Bill Sheboy
body: Hi [@Rob Wolfe](/t5/user/viewprofilepage/user-id/1313101)

Here is the suggestion to add that feature, and one other to improve rule import:

* <https://jira.atlassian.com/browse/JIRAAUTOSERVER-83>
* <https://jira.atlassian.com/browse/JIRAAUTOSERVER-101>

Best regards,

Bill

comments: author: Mark Caldwell
body: So based on this company's response success, the answer is "No, you can not...ever"? I am left today trying to come up with some clever work around which I probably will not find....


author: Callum Carlile _Automation Consultants_
body: [@Rob Wolfe](/t5/user/viewprofilepage/user-id/1313101) Unfortunately it isn't possible to import rules on a project-level, like you say the only thing similar you can do is to copy rules from one project to another.

I guess this restriction is in place just in case a project admin doesn't know what they're doing and accidentally floods their project with many automation rules in a single import, which can have an impact on the overall instance of Jira if there are too many.


Tags: cloud
I want to have summary report for original estimate vs time logged listed projectwise.
Asked by Aniruddha Dike:

We have many projects going on simultaneously in company. Each project have many tasks. I want to generate summary report with columns- "project name", "original estimate", "Logged Time", "Remaining Time". At present, I am able to generate taskwise report thru filter function but i am not able to get summations for entire project.


Answers:
author: Deepanshu Natani
body: Hi [@Aniruddha Dike](/t5/user/viewprofilepage/user-id/4044259)

Can you confirm if you are using Jira Cloud?

comments: author: Aniruddha Dike
body: Yes, I'm using Jira cloud.


Tags: cloud

filter

report
Insight - Asset Management - documentation - Read about where to use IQL
Asked by Sameswar Khuntia:

Hi There,

I was going through the IQL documentation page of Insight. There are some more reference links available on the bottom of page.

*

  ### Read about where to use IQL {#toc-hId-1231404080}

  Page: [Insight Automation](https://documentation.riada.se/display/IN/Insight+Automation)  
  Page: [Insight Custom Field](https://documentation.riada.se/display/IN/Insight+Custom+Field)  
  Page: [Insight Referenced Custom Field](https://documentation.riada.se/display/IN/Insight+Referenced+Custom+Field)  
  Page: [Insight Searching \& Filtering](https://documentation.riada.se/pages/viewpage.action?pageId=3506213)

However I can not access them. could you please let me know how to access these documentations or let me know if these documentation has been moved to a new page ?

I am looking forward to hearing from you.

Thank You,

Sameswar


Answers:
author: Dirk Ronsmans
body: Hey [@Sameswar Khuntia](/t5/user/viewprofilepage/user-id/4372350) ,

Those links still seem to go to the old riada.se site.

i suggest you look at <https://documentation.mindville.com> (where mindville is the new name of the company (before they were acquired by Atlassian)

comments: author: Sameswar Khuntia
body: Thank you!


Tags: cloud
Actual Duration Worked on Task
Asked by atarab:

Hi,

I am looking to add a field to the closing screen of a service desk issue, where the customer support provider can input the approximate amount of time he worked to resolve the issue.

I do **not** want to use an automatic tracker (such as the "time tracking" field) because the fact that an issue was in a certain state does not mean the service provider was working on it the entire time.

I am not aware of a duration input field (system or custom).

What is the best practice for doing this?

Thank you!


Answers:
author: Darryl Lee
body: Hi!

Time Tracking isn't automatic (unless you add Automation to it).

If you add the **Log Work** field to your closing screen, it will provide your customer support provider with an opportunity to do exactly what you're asking - put how much time they worked. It looks like this:

![Screen Shot 2021-04-28 at 5.15.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/141018i884B0F09A27E5A51/image-dimensions/352x289?v=v2 "Screen Shot 2021-04-28 at 5.15.51 PM.png")

![Screen Shot 2021-04-28 at 5.15.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/141018i884B0F09A27E5A51/image-dimensions/352x289?v=v2 "Screen Shot 2021-04-28 at 5.15.51 PM.png")

comments: author: atarab
body: Thank you!

Yes, this is exactly what I was looking for. Thanks!


Tags: custom-field

field