youngmon/atlassian-qna huggingface dataset:
Project Automation / Jira Cloud: Error searching for related issues
Asked by Xheneta G. Hyseni:

Dear all,   
I've got some automations running globally but recently it stopped working and showing the following error:

BRANCH RULE / RELATES ISSUES:

Error searching for related issues. This is most likely because the following issues don't have a related issue of the type you specified. Try narrowing your search to only include issues that contain links to related issues: xxx

Any suggestions how to fix this?

One of the automations looks like this:

![Screenshot 2022-04-26 at 12.50.45.png](https://community.atlassian.com/t5/image/serverpage/image-id/194598i08AC38D25A21384F/image-size/large?v=v2&px=999 "Screenshot 2022-04-26 at 12.50.45.png")


Answers:
author: Bill Sheboy
body: Hi [@Xheneta G. Hyseni](/t5/user/viewprofilepage/user-id/4680285) -- Welcome to the Atlassian Community!

Is the rule image you posted one which received that error?

And if so, would you please post an image of the audit log showing the details of the rule execution with that error?

Thanks, and kind regards,  
Bill

comments: author: Xheneta G. Hyseni
body: Hi Bill,

Thanks for getting back to me.

Yes, I got 5 similar rules which are throwing the same error and the oneI posted is one of them.

Below you can see the audit log of the rule above:

![Screenshot 2022-04-27 at 08.36.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/194775i02E4404043027363/image-size/large?v=v2&px=999 "Screenshot 2022-04-27 at 08.36.39.png")

Best,  
Xheneta


author: Bill Sheboy
body: I wonder if the link type's name is the problem causing the linkedIssues() function to fail as it contains punctuation. Perhaps try using that query in advanced search to observe what happens:

issue IN linkedIssues(TESTFDM-2, "Measures (to fix Finding)")

If it works and returns no results, please check your link types with the site admin to learn if there have been recent changes.

If that query fails with an error, you may have discovered a defect to submit to [Atlassian Support](https://support.atlassian.com/contact/#/):

* Creating a link type name with punctuation (e.g. parenthesis) is permitted and cannot be searched using the JQL linkedIssues() function.


author: Xheneta G. Hyseni
body: Hey Bill,

you made my day!

After testing the query which did not turn any results I renamed the link types without any punctuations and voil? it works!

Thanks a lot for the hint.

Best regards,  
Xheneta


author: Bill Sheboy
body: Awesome! I am glad to learn that helped.

The documentation page for managing links does not describe this limitation, so I submitted some feedback for the Atlassian team to take a look: <https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-linking/>


Tags: cloud
When status changes from Epic to story.
Asked by ravikiran nagasetti:

Hi Experts,  

When Status changes from Epic to story, One custom field value needs to trigger automatically. Is it possible in automation  

<br />

<br />

Thank You,


Answers:
author: Dave Mathijs
body: Hi [@ravikiran nagasetti](/t5/user/viewprofilepage/user-id/4770812)

Your status doesn't change from Epic to Story, because those are issue types, not statuses.

Do you want the status of your Epic to 'Done' when all Stories in your epic are done?

Could you explain more in detail what you're trying to achieve, if possible with screenshots?

comments: author: ravikiran nagasetti
body: Hi [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) ,   

Sorry, Wrong type When Status changes from Epic to Story. One custom field value needs to trigger automatically. Is it possible in automation?  

Thank You,  


author: Dave Mathijs
body: Do you mean when you ++move an issue++ from issue type **Epic** to issue type **Story**, you would like to change the value of a custom field?

Yes, that is possible via Automation.
Comment on Issue with Automation information
Asked by Devin Ponda:

We have a desire to post an internal comment to a request at the end of an automation that would include information like Automation Name and who triggered the automation.

Has anyone come across a solution for this?

Thanks,

Devin


Answers:
author: Mark Segall
body: Hi [@Devin Ponda](/t5/user/viewprofilepage/user-id/4444070) - I would advise against this since you can just look at rule executions to see what has executed against a given issue. However, if you want to go this route, it's pretty simple. You could do something like this in an add comment action:

```
*Rule:* {{rule.name}}

*Triggered by:* {{initiator.displayName}}
```

comments: author: Darryl Lee
body: As Rules and Workflows get more complex/opaque, I could see value in putting this in a Comment for clarity, as I suspect most users would not know to look under Automations for this kind of history.

Also **Rule Executions** does not include who triggered a rule:

![Screen Shot 2022-04-20 at 2.45.58 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/193828iAAEA3F8F57C54D60/image-dimensions/251x119?v=v2 "Screen Shot 2022-04-20 at 2.45.58 PM.png")

On the other hand, if people are somewhat aware of how Rules are implemented, maybe it would be enough to change the Rule Actor to "User who triggered the event":

![Screen Shot 2022-04-20 at 2.48.15 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/193830iC89A1664513FFB6B/image-dimensions/475x139?v=v2 "Screen Shot 2022-04-20 at 2.48.15 PM.png")


author: Devin Ponda
body: [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322)

It worked perfectly. I use the Automation audit logs all the time, but it adds unnecessary troubleshooting time when tracking down issues with misused automations. I can't search the automation audit log for for the Key so I have to dig around based on time.

If I want review the activity of a request due to customer complaint or other ask, then going to the request is the quickest way to do so.

We already are using the User who triggered the event. Unfortunately, the History just shows each step as though an agent did each individually and not that an automation was fired.

What you've provided is exactly what I'm looking for and provides the solution for this use case.

We'll continue to use the Audit Logs for troubleshooting automations, which is what they are designed for...not tracking who ran them.

Thank you both for your quick responses!!!

Devin


Tags: cloud
Regex "does not match" ...doesn't match if theres two matches at the start.
Asked by jshippy:

Using the following filter, and it's been pretty decent thus far, until someone chatted a comment that started with:  

"Thank You!

thank you,

..."

Tested variations on the comment, and getting rid of the second thank you line causes the rule to behave as intended (*don't transition back to in progress*) but two "thank you" comments in a row breaks things. I tested the pattern against regex101.com with the Java 8 flavor, and it matches twice. Is there some quirky backend engine detail thats causing this behavior? Is there something that can be adjusted in my pattern to work around this odd behavior?

Thanks in advance.

*** ** * ** ***

The pattern:

```
^[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?.*
```

*** ** * ** ***

![Screen Shot 2022-04-19 at 10.11.19 AM.png](/t5/image/serverpage/image-id/193525iD66FE5ADA0B0F505/image-size/large?v=v2&px=999 "Screen Shot 2022-04-19 at 10.11.19 AM.png")


Answers:
author: Ed Gaile _Atlanta_ GA_
body: Try the following and see if that gets you what you need. Should only match only the first instance.

\^\[\^%\]\*\[Tt\]\[Hh\]\[AaxX\]\[Nn\]?\[Kk\]?s? ?\[Yy\]?\[Oo\]?\[Uu\]?\[\^%\]\*$

comments: author: jshippy
body: My requirements are "Thank You" in some form, but ONLY at the very *start* of the comment, as we don't want to affect users who respond via email with "Thank You" in their email signature (*which is common in our locale*)

Looks like /A and \^ have different behaviors, so this seems to be working:

```
\A[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?[^%]*$
```

Minor tweaks to your suggestion got me where I wanted. Thank you Sir!


author: jshippy
body: Well this grew past this original question. Thank You's were still getting past, so I started having it output to Microsoft Teams, and found the {{comment.body}} I was checking regex against had {color:#000000} text at the front of the line. Yey.

So I'm up to:

```
\A(\{.*\}\n?\s?|<.{0,5}>|[_+*\-])*[Tt][Hh][AaxX][Nn]?[Kk]?s? ?[Yy]?[Oo]?[Uu]?[^%]*$
```

for my filtering regex to address the presence of one or more leading {} blocks before "Thank You!", also looking for \<\> HTML blocks (which probably aren't in there) and an assortment of Markdown Characters, which could be used for underline, bold, etc. This looks to be effective in my testing, hopefully others will get some mileage out of this.

I've referenced this thread and documented here:  
<https://community.atlassian.com/t5/Jira-Service-Management/Using-automation-to-prevent-reopening-when-a-customer-comments/m-p/2009642#M2847>


Tags: atl-gruland

cloud

jira-service-management
JQL Query Historical Data
Asked by Billy:

Is there a JQL Query to use historical data to see original date and the final date of a sprint.

I am trying to use a historical data to query this to find the dates of what I originally put for the sprint and where it actually ended.


Answers:
author: Darryl Lee
body: Unfortunately the **WAS** operator only works on a very select group of built-in fields:
> (Note: This operator can be used with the Assignee, Fix Version, Priority, Reporter, Resolution, and Status fields only.)

<https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-operators/#Advancedsearchingoperatorsreference-WASWAS>

I've not tried this add-on, but it purports to let you export issue history if you needed to do analysis on custom fields:

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

I think there used to be something similar for Server/Data Center...

comments: author: Darryl Lee
body: Ah, I think I was remembering the venerable [Time in Status](https://marketplace.atlassian.com/apps/1211756/time-in-status?tab=overview&hosting=cloud) add-on, but I'm not 100% sure the whole history is available.

Another app I found that looks interesting is this:

[Issue History Collector](https://marketplace.atlassian.com/apps/1211499/issue-history-collector-see-history?tab=overview&hosting=cloud)

And this is a pretty great article by [@Prince Nyeche](/t5/user/viewprofilepage/user-id/1928483) on how you can probably extract this information using the REST API:

[Extracting complete issue history via API](https://community.atlassian.com/t5/Jira-articles/Extracting-complete-issue-history-via-API/ba-p/1659204)

Alas, none of this is as simple as a JQL query though.


Tags: cloud

issue-history

jql
Automation Rule that Assigns an Issue, then Emails he Assignee
Asked by Ernesto Donate:

The Rule I have is set to Run

* When an Issue is created
* Check a JQL Condition
* Then Assign the Issue in Round Robin format to a person in a Group
* Then Send Email to the Assignee

However, the email isn't sent, and when look in the Audit Log there is a message:

"There is no value set for the field:  
assignee"  
Is it possible for a rule to set an assignee and then email the assignee?  
Thank You


Answers:
author: Mohamed Adel
body: Hi [@Ernesto Donate](/t5/user/viewprofilepage/user-id/1152500)

Please before sending the email step add the following action :

Re-fetch issue data

this should fix your problem ![Screen Shot 2022-04-16 at 3.31.32 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/193165i47DAB98BB5354D85/image-size/large?v=v2&px=999 "Screen Shot 2022-04-16 at 3.31.32 AM.png")

Regards

Mohamed Adel

comments: author: Bill Sheboy
body: Hi [@Ernesto Donate](/t5/user/viewprofilepage/user-id/1152500)

Yes, and...to the answer from [@Mohamed Adel](/t5/user/viewprofilepage/user-id/1185930)

When using the Issue Created trigger, sometimes the rule can start before all of the issue's data is available. Adding a Re-fetch action **immediately after your trigger** will slow down your rule and try to reload the data before proceeding with any other processing.

Kind regards,  
Bill


author: Ernesto Donate
body: Thank you [@Mohamed Adel](/t5/user/viewprofilepage/user-id/1185930) , and [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) . I will try this. Have a great weekend!

Ernesto


Tags: cloud
Can you create an action to move issue to another project
Asked by Hardeek Patel:

Want to create this automation-

1. When issue is created containing text in summary

2. Move to another project

3. Edit fields in project

4. Assign to person

I know I can this do if I remove step 2 and make the automation within the same project, but can't figure out how to change the project, assign it and hopefully edit the status fields (different from current project) in the desintaiton project.


Answers:
author: Mark Segall
body: Hi [@Hardeek Patel](/t5/user/viewprofilepage/user-id/4879456) and welcome to the community!

Jira is not designed for routinely moving issues from one project to another and that's because there is a lot involved behind the scenes. Jira has no way of knowing that the target project is configured the same (statuses, issue types, field configurations, etc.)

So, it is best practice to instead clone or create issues onto other projects. You could extend your automation a bit to make a clone, link it to the source issue, and then close out the source issue as a potential workaround.

comments: author: Bill Sheboy
body: Hi [@Hardeek Patel](/t5/user/viewprofilepage/user-id/4879456) -- Welcome to the Atlassian Community!

Yes, and...to Mark's answer:

There are a couple of suggestions to add a "move action" for automation, which you may review below. *Move* is not supported in the REST API and there are quite a few possible problems, requiring human interaction, and so it probably would not get implemented.

<https://codebarrel.atlassian.net/browse/AUT-41>  
<https://jira.atlassian.com/browse/JSWCLOUD-22679>

Kind regards,  
Bill


author: Hardeek Patel
body: Thanks Mark and Bill. I figured there might be some restrictions around it, like you said due to not knowing the configurations of the target project.

Thanks for the links Bill, I'll check those out and play a little.


Tags: cloud
How to get item's index in list by its name?
Asked by axone:

Hello community!

The problem I'm trying to solve is to figure out is a version in a project is archived.  
The closest thing I came up with is

```
{{project.versions.get(6).archived}}
```

But I would like to access the property by its name, not by its index.

The only thing I can think of is to iterate throughout the versions and to find my version by myself. But there must be an easier way.


Answers:
author: Bill Sheboy
body: Hi [@axone](/t5/user/viewprofilepage/user-id/4857586) -- Welcome to the Atlassian Community!

Without seeing your complete rule, I believe the answer is "maybe".

If you are trying to find a specifically named issue (i.e. literal value) in the list, you could try filtering the smart value list on the name, and then access the archived attribute: <https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588>

If instead you are trying to use a dynamic value for filtering, such as from an issue's field or created variable, filtering does not work. Instead you would need to walk the list in an advanced branch and use conditional logic to test archived.

Kind regards,  
Bill

comments: author: axone
body: Hi Bill.

The first method you suggested seems to be working for me. Thinks! That's the one I was hoping to avoid, though :D


author: Bill Sheboy
body: Now that I think about this...another way that might work is to expand your versions into a list with your own delimiters, iterate the list, use a regular expression with match() to find the desired name (which can use smart values as params), and then check the archived attribute. *Please note, I have not tried this.*


author: axone
body: Nah, this is also looks quite complicated )
Dynamic IP allowlist
Asked by Karan_Thakkar:

I have a URL that returns a list of IPs. How do I pass this dynamic/evolving list of IPs to the allowlisting feature?

If that isn't possible, how do I add several IPs to the allowlist at once? Currently I can only add 1 IP at a time, then hit 'Add' and move on to add another one.


Answers:
author: Syahrul
body: G'day, [@Karan_Thakkar](/t5/user/viewprofilepage/user-id/5450843)

Welcome to the community!

It is not possible to manage a workspace's allowlisted IPs dynamically other than manually adding them in the UI at this moment. We have a feature request for providing an API endpoint to do that:

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

The request has been closed as it is not likely to be worked on in the near future. However, I would recommend adding a comment to express your interest, as our product managers continue monitoring even closed requests.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud

ip-allowlist

permission
Bitbucket Cloud integrated backup
Asked by Michele Virgilio:

Hi, i would to know if Bitbucket Cloud does supports out of the box some integrated backup mechanism for repositories; so for example, if it is possible to come back at some point-in-time data restoration of source code repositories through an user interface.

Thanks


Answers:
author: Theodora Boudale
body: Hi Michele,

Bitbucket Cloud does not have such a feature.

There are a few apps in Atlassian Marketplace for automated backups for Bitbucket Cloud that you can check:

* [https://marketplace.atlassian.com/search?hosting=cloud\&product=bitbucket\&query=backup](https://marketplace.atlassian.com/search?hosting=cloud&product=bitbucket&query=backup)

Kind regards,  
Theodora


author: Daria Kulikova
body: Hello [@Michele Virgilio](/t5/user/viewprofilepage/user-id/5317180) ,

I represent GitProtect backups for Bitbucket Cloud. With our solution you can easily set automated backups for your entire Bitbucket enviroment, or simply pick up the data you need to protect. Unlimited retention, the AES encryption with your custom encryption key, multi-storage compatibility, ransomware protection, comprehensive restore and Disaster Recovery Technology, etc. - all the features that stand on the guard of data protection.

When it comes to the restore features, in the event of failure, you can easly restore your data from any point in time, granularly restore you repositories and selected metadata, restore to the same or new repository or oragiation account, cross over recovery to another git hosting platform (GitLab or GitHub), restore to your local device.

You can try GitProtect backups for Bitbucket for free for 14 days: [https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1225728/gitprotect-io-backup-for-bitbucket?hosting=cloud&tab=overview)

Or just contact us to have a custom demo: <https://calendly.com/d/3s9-n9z-pgc/gitprotect-live-demo?month=2024-03>

Regards,

Daria


Tags: backup

bitbucket-cloud

cloud
Path to my dashboard
Asked by ubodn:

I have registered at bitbucket.org and set my Username to \<username\>, but my current url is   
<https://bitbucket.org/workspace-id/workspace/overview/>  

Whai is that "workspace-id"?


Answers:
author: Theodora Boudale
body: Hi [@ubodn](/t5/user/viewprofilepage/user-id/5457442) and welcome to the community!

There was already an existing Bitbucket Cloud acount with your email address. The link you posted here is the personal workspace of your account.

If you have access to additional workspaces, you can view them the following way:

1. Select your avatar (top right corner) on Bitbucket Cloud website
2. Select **All workspaces**

You will then see all workspaces your account has access to. You can select each of them to view their content.

You can find more info on navigation in this blog post:

* <https://bitbucket.org/blog/improving-navigation-for-bitbucket-users>

Just a heads up, I removed the workspace-id and username from your post to comply with our privacy policy.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How useful is ScatterSpoke Metrics for Bitbucket cloud.
Asked by Tanu Garg:

I want to understand the reviews of using ScatterSpoke Metrics for Bitbucket cloud.


Answers:
author: Mark C
body: Hi [@Tanu Garg](/t5/user/viewprofilepage/user-id/5370982),

Thank you for reaching out to the community.

The best way to determine the effectiveness of the third-party marketplace app is to either test it or reach out to the vendor if you have clarifications or additional questions about the marketplace app.

Here are some useful links:

* [ScatterSpoke Metrics for Bitbucket - Support](https://marketplace.atlassian.com/apps/1230518/scatterspoke-metrics-for-bitbucket?hosting=cloud&tab=support)
* [Understanding Bitbucket Metrics and Setting Them Up for Success](https://www.scatterspoke.com/kb/bitbucket-metrics)

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
How to find open source code on Bitbucket
Asked by 12shuaibi:

???bitbucket???????????


Answers:
author: Theodora Boudale
body: Hi [@12shuaibi](/t5/user/viewprofilepage/user-id/5456909) and welcome to the community!

You can use the following page to search for public repos by name in Bitbucket Cloud:

* <https://bitbucket.org/repo/all>

You could also do a Google search since public repositories are indexed in Google. By adding the string "site:<https://bitbucket.org>" to your search, you'll be able to find public repositories.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Accessing bitbucket through Atlassian access
Asked by Haneena Fathima:

Hi team,

We have moved Bitbucket from server to datacentre. While the other two products are being migrated to cloud and we have Atlassian Access set up for it, is it not possible to have Atlassian access for Bitbucket as well ?

If not, how do we access bitbucket ?

We would like to discontinue using crowd as well and do not wish to go with a third party plugin.


Answers:
author: Aman Shrivastava
body: Hi [@Haneena Fathima](/t5/user/viewprofilepage/user-id/5443778)

[Atlassian Access](https://www.atlassian.com/software/access) is for cloud offerings only and can't be integrated with DC and Server products such as Bitbucket DC/Server. The equivalent to Atlassian Access for Data Center would be the Crowd as this provides similar Security and identity functionalities as you may see over the page [Compare Atlassian Cloud and Data Center.](https://www.atlassian.com/migration/assess/compare-cloud-data-center)

You can choose to directly integrate external directories like OpenLDAP, Microsoft Active Directory, OpenDS, and so on with Bitbucket. You can read it in more detail in the [External user directories](https://confluence.atlassian.com/bitbucketserver/external-user-directories-776640394.html) article.

Regards,  
Aman


Tags: bitbucket-data-center

data-center