youngmon/atlassian-qna huggingface dataset:
How to put the sub-task and story URL into Epic description
Asked by ???:

Hello  

I am using Advanced road map and there is no way to see the sub-task and story URL.   
Thus, I need to put the sub-task and story URL into their Epic description  

Is it way to do it automatically?   
I am gonna use the triggar 'when the issue is created'.   

Sincerely


Answers:
author: Curt Holley
body: [@???](/t5/user/viewprofilepage/user-id/4779750)

Welcome to the community.

Curious to know why you need the URL's of the children/grandchildren of an Epic as part of the description when they are linked and it is so easy to navigate to them from the epic....but!!

If you have Jira cloud, then you could use the built-in automation and use the samrt value of;

* {{issue.url}} - Returns the URL of the issue.

See here for more details on smart values [Jira smart values - issues \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/)
Ask JQL query
Asked by Sebasti?n Dur?n:

Hey,

I need a JQL query to filter issues that do not have the status "Closed".

Currently, I am using the following query: resolution = Unresolved AND Organizations = "Org"

Can you help me? Thanks!


Answers:
author: Victor Law
body: Hi [@Sebasti?n Dur?n](/t5/user/viewprofilepage/user-id/5461711)

It is possible to extend the existing JQL query with an additional Status field:

```
resolution = Unresolved AND Organizations = "Org" AND status != Closed
```

It is strongly recommended that you go through the JQL query document to understand better how to construct a JQL.

<https://support.atlassian.com/jira-service-management-cloud/docs/jql-fields/#Status>

Thank you.

comments: author: Sebasti?n Dur?n
body: Thanks Victor!

Is there a way to apply the same query to all the queues at once?


author: Scott Schellhardt
body: Hi Sebastian,  

You will want to use the status != Closed JQL

comments: author: Sebasti?n Dur?n
body: Thanks!

Another question, Is there a way to apply the query to all queues at once?


author: Laurie Sciutti
body: Hey [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) \~ only if the Unresolved text were in quotes would that be considered as the resolution value. In this case,

```
resolution = Unresolved
```

translates to open issues...


Tags: cloud

jira-service-management

jira-service-management-cloud
Error communicating with the API - Automation for Jira
Asked by Shah Baloch:

I set up automation whenever a high-priority issue gets created in a project it should send a notification to a team in MS Teams. However, I'm getting the below error when the rule run.  
> Error communicating with the API  
> 408 - {"errorMessage":null,"message":null,"warningMessages":\[\],"errorMessages":\["Request timed out."\],"errors":{},"status":408}

Here is the JQL when it passes then it should trigger the notification:
> project = "SUP" AND status = Open AND priority = High AND created \>= -5m

Any idea why I'm getting the error and how can I fix it?

Thank you

![Automation_02252022_03.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/185496i8C7CCA08E457008C/image-size/large?v=v2&px=999 "Automation_02252022_03.JPG")![Automation_02252022_02.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/185498i5633DD12613F2B9B/image-size/large?v=v2&px=999 "Automation_02252022_02.jpg")![Automation_02252022.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/185497i820E3CD27192FC78/image-size/large?v=v2&px=999 "Automation_02252022.jpg")


Answers:
author: Andy Heinzer
body: There is an existing bug we are tracking in regards to this behavior over in <https://jira.atlassian.com/browse/JIRAAUTOSERVER-474>

While we do not have a clear workaround for this yet, I'd recommend watching that bug ticket for updates to this.


author: Bill Sheboy
body: Hi [@Shah Baloch](/t5/user/viewprofilepage/user-id/3738782)

Did you first setup things on the MS Teams side to receive things? If not, please take a look that the steps in this documentation:

<https://support.atlassian.com/cloud-automation/docs/use-automation-with-microsoft-teams/>

Kind regards,  
Bill

comments: author: Shah Baloch
body: Yes, I followed the documentation I got the webhook URL from ms teams and that is the URL I'm using for automation.


author: Bill Sheboy
body: Thanks for that information.

I have seen some reports of intermittent errors like that. If it is consistently showing that error, please work with your site admin to submit a ticket to the Atlassian support team to see what they can find: <https://support.atlassian.com/contact/#/>


author: Shah Baloch
body: Thank you


author: App Admin
body: Did you ever find a resolution to this?


author: Shah Baloch
body: No, I didn't find a proper resolution yet. I removed rules, regenerated a new webhook URL, and created the rule again. I still get the error when it triggers the first time every day. I mean after a first trigger it works fine for the rest of day, the next day I get the error again once it runs.


author: Finnegan_ Brian
body: I'm seeing exactly the same behavior and error code with Jira Automation and Webhook to MS Teams channel.


author: Jake C
body: We have the same issue, anyone found anything on this?


Tags: api

error

jira-server

ms-teams

notification

webhook
Not showing "To DO" or "In Progress" or "Impediment" by JQL in automation script
Asked by Jeroen Kotterlink:

Hello all,

I try to get shown "To DO" or "In Progress" or "Impediment" in the email I send with JQL code in the content.

The only text that is shown is 10000 for "To Do" and a 3 for "In Progress". How can I change or resolve the displayed text for this?

I will send the 2 screenshots with this. The automation and the email thats received.

I hope someone can help.

With regards,

Jeroen

![jirapi1.JPG](/t5/image/serverpage/image-id/184993i6516A725F53E2604/image-size/large?v=v2&px=999 "jirapi1.JPG")![jirapi2.JPG](/t5/image/serverpage/image-id/184994i99E275B63F91FCB2/image-size/large?v=v2&px=999 "jirapi2.JPG")


Answers:
author: Airbus Driver
body: Can you please try {{status.name}} and check to see if that helps?

comments: author: Jeroen Kotterlink
body: Hi,

Thnx, it works. I tried everything besides this combination.

Grz Jeroen


Tags: cloud

jql
Specific User is not selectable in Assignee field in Automation
Asked by senthilkumar.kesavan:

HI,

I am not able to select the specific user in Assignee field (list is not loading any users to pick) in Automation. Any one facing the similar issue? I have created support ticket waiting for response.


Answers:
author: Dan.Tombs
body: Hi [@senthilkumar.kesavan](/t5/user/viewprofilepage/user-id/4767185)

assigned users are driven from the permission for the assignable role. You should make sure the user has access to this permission either through the permission scheme or better through project roles.


Tags: cloud

jira-software

jira-software-cloud
Need a Smart Value for a Bilingual Issue Description
Asked by Vincenzo Ciaravella:

I'm working in a Jira Data Center environment and cannot seem to find a Smart Value in Jira Automation that will allow me to insert a Smart Value in the French language for "Months" of the year. I have identified the proper English ones but when I try to apply Smart Value functions (found on the "Cloud documentation") pertaining to Language I get no results. I got no errors but no results either (see list of Smart Value attempts below)

* {{now.format.withLocale("fr").mediumDate}}
* {{now.format.locale("fr_CA").mediumDate}}
* {{now.format.withLocale("fr").asLongDateTime}}
* {{now.format.locale("fr_CA").longDateTime}}
* {{now.format.withLocale("fr").mediumDate}}
* {{now.format.locale("french_CA").mediumDate}}
* {{now.format("MMMM").withLocale("fr_CA")}}

The ones that I need that are functioning in English are:

* {{now.format("MMMM yyyy")}}
* {{now.format("MMMM")}}
* {{now.endOfMonth.format("MMMM dd, yyyy")}}
* {{now.lastBusinessDayOfMonth.plusBusinessDays(1).format("MMMM dd, yyyy")}}

Any idea on how to successfully translate the month to French in each of my English examples?

Thanks,  
Vince


Answers:
author: Stefan Salzl
body: Hi [@Vincenzo Ciaravella](/t5/user/viewprofilepage/user-id/3838799) ,

seems like working on my side:

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

Have you tried to first use the **.locale()** and then the **.format()** ?

following smart value worked for me:

```
 {{now.locale("fr").format("MMMM yyyy")}}
```

<br />

<br />

Please let me know if this helps.

Best  
Stefan

comments: author: Stefan Salzl
body: Hi [@Vincenzo Ciaravella](/t5/user/viewprofilepage/user-id/3838799) ,

Is there any feedback on the suggested solution? Could that be tested already?

In case the solution works please consider to accept the answer in order to get this question marked "solved" and make it easier for other users to find solutions to their problems.

Best  
Stefan


author: Vincenzo Ciaravella
body: Thanks Stephan!!! That was exactly what I was looking for!!!

Cheers

Vince


Tags: data-center

date

format

language
Can we use automation to add a checklist when certain criteria are met?
Asked by Greg Williams:

Hello:

Our tenant uses [Issue Checklist Pro](https://marketplace.atlassian.com/apps/1213231/issue-checklist-for-jira-pro?hosting=cloud&tab=overview) and I was wondering if there was a way to either use Automation for Jira to incorporate a saved checklist template into a ticket when certain criteria are met, or if the app itself offers up something like this (currently do not see that as an option).  

The closest I am seeing is to make it a default based on the issue type, so we could either:

1. Use an existing issue type to set the template as a default, or
2. Create/add a new issue type to the project and then any ticket with that issue type gets the checklist  
   .![issue-type.png](https://community.atlassian.com/t5/image/serverpage/image-id/184261iD563B9DC88A61CF5/image-dimensions/308x310?v=v2 "issue-type.png")

Is there any other ideas / options or would I have to create a process improvement request to make this a future enhancement (Either with the vendor, Atlassian, or both)?

Thanks!


Answers:
author: Bill Sheboy
body: Hi [@Greg Williams](/t5/user/viewprofilepage/user-id/3828113)

Please take a look at this documentation from the vendor for an automation rule which seems to match your use case:

<https://herocoders.atlassian.net/wiki/spaces/IC/pages/2483519492/Apply+checklist+template+to+issue+on+issue+create+edit+or+transition>

Kind regards,  
Bill


Tags: checklist

jira
How to access branch name from issue automation
Asked by Stanford Kamau:

I have an automation (my first) which I am trying to set up, where an issue being transitioned to Awaiting Testing will run a bitbucket pipeline kicking off smoke tests on the branch associated with the ticket.

It seems the branch smart values are not available, so what would be the recommended way to be able to get this information?

Thanks for your assistance

![Screenshot 2022-02-18 at 14.02.00.png](/t5/image/serverpage/image-id/184217iE8C876CF55809F09/image-size/large?v=v2&px=999 "Screenshot 2022-02-18 at 14.02.00.png")


Answers:
author: Bill Sheboy
body: Hi [@Stanford Kamau](/t5/user/viewprofilepage/user-id/4098438)

The branch smart values are currently only available with the Branch Created trigger: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/>

There are some suggestions to make them available with other triggers for the issues.

A couple of possible work-arounds would be to:

* save the branch name somewhere (e.g. issues, entity properties) when the Branch Created trigger fires (with a different rule), or
* to try calling the source control tool's API.

Kind regards,  
Bill


Tags: bitbucket

branch

cloud

jira
Store field value changes in a new field
Asked by Tobias:

Hello together,

I was just thinking about a possibility to store all values of a customfield in a separate field. Use-Case is the following: We want to implement some kind of milestone tracking in Jira. Therefore we also have to account shifts. For these shifts we implemented a date time custom field. So my idea was to append the new value to the separate field every time the field value changes. We need to have every value because we want to display all shifts in an BI tool.

Currently we have Automation lite in use, but will update to Pro asap. Does someone have an idea if this implementation makes sense or if there are maybe better possibilities.

Thank you in advance,

Best


Answers:
author: Pramodh M
body: Hi [@Tobias](/t5/user/viewprofilepage/user-id/4045027)

As I can see from the use case, this is more of changelog tracking.

You could extract this information from API - GET Issue and track this outside the Application

Cloud --\> <https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-changelog-get>

Server --\> <https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-getIssue>

If you are on Cloud, you could explore the app here

[https://marketplace.atlassian.com/apps/1220385/issue-history-for-jira?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1220385/issue-history-for-jira?tab=overview&hosting=cloud)

Tracking the Issue Change log in another custom field is not a good practice

Thanks,  
Pramodh

comments: author: Tobias
body: Hi [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

firstly thanks for replying to my question. It is clear for me how to get the values via the API. Problem here is, that I need to provide all values of every change in the shift. Because this is what we want to display in BI. We want to see how often there was a shift (or a change of this field value). This is not possible for me at the moment, this is why I was asking.

Hope this makes it a bit clearer now.


author: Pramodh M
body: [@Tobias](/t5/user/viewprofilepage/user-id/4045027)

Yes I understand, what I'm trying to say with API you can track the changelog which has happened to a custom field. is this clear?

If you need to track that in Jira by creating another custom field, it's not possible.

Let me know if you have any queries

Thanks


author: Tobias
body: Hi [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224)

ah now I understand. So you think that it is not neccessary to add another custom field to copy every separate new value. How can I track changes in an custom field, is there a specific API endpoint to track this?


Tags: custom-field

milestone
Formatting a smart value list (for email) to say "Service1, Service2, and Service3"
Asked by Victoria T:

I'm trying to format a smart value list to stick it into a sentence for an email. I have an idea of what I will need to do with conditional logic (i.e. if there is one item, = do this, 2 = do this, 3 or more = do this) but where I'm stuck is formatting the "3 or more" section.

To be readable, I'd like to make it say "Service1, Service2, and Service3" with the "and" instead of another comma being where I'm struggling. I've been looking through documentation and I can't find anything, but it feels like something that might just be expected to know.

After digging around, what I've reached is:

```
{{#issue.affectedServices}} {{name}}{{^last}}, {{/}}{{/}}
```

Where I understand by putting "{{\^last}}" it's saying do not put the comma after the last item in the list. What I don't understand is how to make it put an "and" in front of the last item of the list instead of a comma after the item.

Thank you!


Answers:
author: Mykenna Cepek
body: Try this:

```
{{#issue.affectedServices}} {{#last}}and {{/}}{{name}}{{^last}}, {{/}}{{/}}
```

Omitting the final comma (before the 'and') is not easy, and arguably not desired ([Oxford comma](https://en.wikipedia.org/wiki/Serial_comma)).

comments: author: Mykenna Cepek
body: See the docs [here](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#Combined-function-examples) for examples.


author: Bill Sheboy
body: Hi [@Victoria T](/t5/user/viewprofilepage/user-id/4100546)

Yes, and...to what [@Mykenna Cepek](/t5/user/viewprofilepage/user-id/3527113) suggests...

You could also look at the conditional logic and/or new smart value list filtering for more complex formatting:

* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/>
* <https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588>

For example, you could use a test on {{issue.affectedServices.size}} to check the count for different layouts, concatenating them for 0 values, 1-2 values, or more than 2 values. Because only one would be non-empty you would get the expected result.

Kind regards,  
Bill


author: Victoria T
body: [@Mykenna Cepek](/t5/user/viewprofilepage/user-id/3527113) Thank you! This is the exact sort of example I needed to understand what to do next. And you're right, I don't particularly care if the comma before "and" is committed or not. :)

[@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) Oh yes, I'm having fun with the conditional logic for these rules. To anyone that might see this, .size is how I'm doing it and it's working.


author: Mykenna Cepek
body: And if the Oxford Comma (or not) isn't pedantic enough for you, wait until you find yourself spending time adding a conditional to pluralize a word when the count is not equal to "1"!


Tags: cloud
How to populate a JSON structure with task & subtask fields
Asked by Deiser Service Team:

Hello!

I'm doing an automation that will call a REST endpoint with a JSON structure containing a 'header' with info from the task and one 'line' per subtask with info from the subtask.

Output should be something like this:

{  
"YTXTCAB": "{{issue.summary}}",  
"YWSCYLINSOL":  
\[  
{  
"$uuid": "{{issue.subtasks.uuid}}",  
"YITMREF": "{{issue.subtasks.YITMREF}}",  
"YITMDES": "{{issue.subtasks.YITMDES}}",  
"YQTYPUU": "{{issue.subtasks.YQTYPUU}}",  
"YEXTRCPDAT": "{{issue.subtasks.YEXTRCPDATv}}",  
"YCCE3": "{{issue.subtasks.YCCE - Proyecto}}",  
"YTXTLIN": "{{issue.subtasks.descripcion}}"  
},  
\]

}

Where the inner structure is replicated for each subtask inside the array \[\].

<br />

The above example lines do not work, of course, as you get just one line in the array with an all the field values from all subtasks in each field. Like below:

{

"YTXTCAB": "TEST - Sage",

"YWSCYLINSOL":

\[

{

"$uuid": "123-abc, 456-def",

"YITMREF": "YITMREF 1, YITMREF 2",

"YITMDES": "YITMDES 2, YITMDES 2",

"YQTYPUU": "1.0, 2.0",

"YEXTRCPDAT": "2022-02-17, 2022-02-18",

"YCCE3": "YCCE 1, YCCE 2",

"YTXTLIN": ""

},

\]

}

How would you go about getting one line of the inner structure into the JSON for each subtask?

Thanks

Jorgen


Answers:
author: Deiser Service Team
body: I have found the solution, pasting it below:

{  
"YTXTCAB": "{{issue.summary}}",  
"YWSCYLINSOL":  
\[  
{{#issue.subtasks}}  
{  
"$uuid": "{{uuid}}",  
"YITMREF": "{{YITMREF - C?digo art?culo}}",  
"YITMDES": "{{YITMDES}}",  
"YQTYPUU": "{{YQTYPUU - Cantidad a comprar}}",  
"YEXTRCPDAT": "{{YEXTRCPDAT - Fecha recepci?n prev}}",  
"YCCE3": "{{YCCE - Proyecto}}",  
"YTXTLIN": "{{description}}"  
}  
{{\^last}},{{/}}  
{{/}}  
\]  
}
Are there any documents on how to tune automation performance?
Asked by Josh Salvi:

Previously under CodeBarrel there were some basic guidelines on what types of search were most efficient and what order to put conditions to efficiently execute or exit a rule.

I haven't been able to find this information under the new Atlassian documentation. I have some users that have created automations that can sometimes approach daily processing time limits and I'd like to be able to guide them on how to improve those automations if possible.

Thanks


Answers:
author: Mykenna Cepek
body: Start with these:

* [Best practices for optimizing automation rules](https://support.atlassian.com/cloud-automation/docs/best-practices-for-optimizing-automation-rules/)

* [7 Things You need to Know about Automation for Jira](https://www.akeles.com/7-things-you-need-to-know-about-automation-for-jira/)

Anyone else have links to docs that are still available online?

comments: author: Darryl Lee
body: Unfortunately [@John McKiernan](/t5/user/viewprofilepage/user-id/3613862) 's blog post about "Performance Insights for Automation for Jira" is no longer active, but an archived version (minus the pretty pictures) is[here](https://web.archive.org/web/20191018073005/https://blog.codebarrel.io/new-performance-insights-for-automation-for-jira-5a8022fe91cf?source=collection_home---4------1-----------------------).

Here's the current documentation on Performance Insights:

<https://support.atlassian.com/cloud-automation/docs/view-performance-insights-for-automation-rules/>
Me gustaria saber si existe un log para saber quien descargo o clono mi repo, con detalles
Asked by Advanced POS Solutions:

me solicitan un auditoria donde solicitan tener el control de quien ha descargado o clonado mis repositorios con hora y fecha


Answers:
author: Theodora Boudale
body: Hi [@Advanced POS Solutions](/t5/user/viewprofilepage/user-id/3803659),

Each workspace has an Audit Log that admins can access from Workspace settings, but I'm afraid that clone events are not included in that Audit Log.

We have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-8322>

You can add your vote to that feature request (by selecting the **Vote for this issue** link) to express your interest. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Old Snyk integration not replaced with New Snyk App
Asked by Chris Heale:

Our Snyk page embedded in Bitbucket Cloud project page was endlessly spinning. I then read about the new integrated App... so I installed that from the Market Place, and it is now showing information... however I now have 2 Snyks in my left navigation... 1 old (2022) broken one, 1 working one...

How do I remove the old Snyk integration?


Answers:
author: Chris Heale
body: Nevermind.. I saw this question... same issue...

[Snyk not loading anymore (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Snyk-not-loading-anymore/qaq-p/2598840)

I removed the "old" Snyk App from Installed Apps


Tags: bitbucket-cloud

cloud

snyk
Connect Bitbucket to Jira Cloud and Jira Data Center
Asked by T_CON GmbH _ Co_ KG:

Dear community,

For testing cases we need to test to connect one Bitbucket Cloud instance to Jira Software cloud **AND** Jira Software data center. Would it be possible?

We need the Bitbucket connectivity tests before migrating the projects.

Thanks,

Stefan


Answers:
author: Theodora Boudale
body: Hi Stefan,

You can connect a Bitbucket Cloud workspace to both a Jira Cloud instance and Jira Software Data Center.

You can read the documentation here:

* <https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/>
* <https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-server/>

Please keep in mind that if you have a project with the same key in Jira Cloud and Jira Software Data Center, the links in any Bitbucket commits that reference issues from this project will reference only one instance. For example, if both Cloud and Data Center have a project with the key TEST and a Bitbucket commit references the issue TEST-5, then TEST-5 will become a link to the Jira instance you linked to Bitbucket first.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira-software-cloud

jira-software-data-center