youngmon/atlassian-qna huggingface dataset:
Can I combine two triggers in an automation
Asked by Kel Hill:

Looking to make an automation triggered if the issue is new OR if the issue is moved. Need to know how to combine two EITHER/OR triggers. When building, I can only seem to replace the first trigger with the second one or to stack triggers that must all be true. Is there a way to make my two triggers with an OR functionality?


Answers:
author: Bill Sheboy
body: Hi [@Kel Hill](/t5/user/viewprofilepage/user-id/613745)

Have you tried the Multiple Issue Events trigger:   
<https://support.atlassian.com/jira-software-cloud/docs/automation-triggers/#Automationtriggers-Multipleissueevents>

Kind regards,  
Bill

comments: author: Kel Hill
body: Thanks for the tip! Will give that a shot.


Tags: trigger
Automation: update Reporter for Blocked ticket
Asked by Ryan Smith:

Dear Hivemind,

I have an automation issue that I just can't seem to solve:

* I have 2 projects, let's call them **"SPPRT"** and **"BOB"**
* Sometimes **SPPRT** tickets can be *blocked* by **BOB** tickets
* *IF* a **BOB** ticket Blocks a **SPPRT** ticket I want jira to automatically change the REPORTER of the **BOB** ticket to be the same as the REPORTER of the **SPPRT** ticket

I can get this to work in reverse (!?!) where the BOB ticket would be changed by the SPPRT ticket so it should be possible.  

While answers are appreciated, there is ZERO chance we're going to pay for a solution for this issue as it would be cheaper to just manually change the field.  

Your time and consideration is greatly appreciated!  

???


Answers:
author: Bill Sheboy
body: Hi [@Ryan Smith](/t5/user/viewprofilepage/user-id/3891724)

As you already have this working in one direction, perhaps your rule just needs some adjustments. Would you please post an image of your rule and of the audit log for a case where you expect it to work? That will provide the community some context to offer ideas. Thanks!

Kind regards,  
Bill

comments: author: Ryan Smith
body: It's pretty simple:

? When: Issue linked  
Types: Blocks  

?? Then: Edit issue fields  
**Reporter** (copy from issue)


author: Bill Sheboy
body: Ryan, I suspect it is the difference in link direction: blocks versus is-blocked-by. Perhaps try first reversing the direction and testing again.
View total work logged in a issue?
Asked by Sofia Quintero:

Hello,

I noted that in Jira cloud it?s not possible to view the total worklog or ? Time Spent in a issue view.  
I?m working on an automation for copy the sum of total hours logged in an issue to a custom field.

I?ve tried two types of custom field: Number and Text Field (single line).

The automation:

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

For copy the values of ?time spent on the custom field i tried the following:

{{#=}}{{issue.subtasks.timeSpent.sum}}{{/}}

{{#=}}{{issue.childissue.timeSpent.sum}}{{/}}

{{#=}}{{issue.subtasks.timetracking.timeSpent.sum}}{{/}}

In all cases, the automation execute as successful, but both custom fields dont show anything.

any help?


Answers:
author: Maria
body: Hi [@Sofia Quintero](/t5/user/viewprofilepage/user-id/3648136),  
On behalf of the Planyway team, I'd like to suggest you check [Planyway](https://marketplace.atlassian.com/apps/1221297/planyway-resource-planning-project-roadmap-time-tracking?tab=overview&utm_campaign=atlassianquestions&utm_medium=referral&utm_source=atlassiancommunity&hosting=cloud) out. You can see the total tracked time on cards right on the timeline and compare it with the estimated effort. For example: ![Planyway time tracking for Jira Fields](https://files.planyway.com/assets/3.0.318/jira-time-tracking-fields.png)  

If any questions, please feel free to reach out.

comments: author: Sofia Quintero
body: Hello [@Maria](/t5/user/viewprofilepage/user-id/3973112) , thank you for your suggestion.


author: Curt Holley
body: You should be able to see Original estimate and Time tracking....and they should provide all you need (without automation). Can you not see these fields in your instance?

![Screenshot 2021-09-20 123207.png](https://community.atlassian.com/t5/image/serverpage/image-id/160987i6C8A25A30B589486/image-size/large?v=v2&px=999 "Screenshot 2021-09-20 123207.png")

comments: author: Sofia Quintero
body: [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) Thank you for answer, i realized that for some reason i couldn?t see time tracking as you indicated, in an instance that use Tempo. But i tried in other test instance that doesn?t have temppo installed, and y could see the same way as you showed in screnshoot.  
Thank you.


Tags: cloud

jira-cloud

time-tracking
Random GIF or content on "send email"
Asked by Kaj Sennel?v:

Hi Community!

I'm currently setting up an automation rule that sends out an email to the assignee when an initiative is set to done. This email is to celebrate the achievement!

In order to keep it interesting, I'd like to add something random or unique every time the email gets sent. Like for example a random gif connected to the theme "celebration".  
Has anyone done something similar before or knows how to tackle this?


Answers:
author: Support Team _Clearvision_
body: Hi Kaj

You could try something similar to what is documented here if you are using jira cloud and automation for Jira

<https://confluence.atlassian.com/automation072/send-web-request-action-now-provides-response-data-1056675727.html>

There would be a couple of steps

1. Set up an account on giphy and create an app so you can get an api key.

2,. Set an automation rule to trigger on transition to done.

2. Use the api key from the app in the send web request automation rule to [http://api.giphy.com/v1/gifs/random?tag=celebration\&rating=pg-13](http://api.giphy.com/v1/gifs/random?tag=celebration&rating=pg-13)  
![sendwebrequest.png](https://community.atlassian.com/t5/image/serverpage/image-id/160745i6D3E3C3FD64C5DD8/image-size/large?v=v2&px=999 "sendwebrequest.png")

3. Use the web request response in the send email action. It would looks something like this.

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

comments: author: Darryl Lee
body: I love this idea, and I love that somebody came up with an answer already (although I was on my way towards it, I swear!)


author: Kaj Sennel?v
body: Love the creativity!  
Thanks [@Support Team _Clearvision_](/t5/user/viewprofilepage/user-id/130823) , I will try it out today! ?

[@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322) Thank you for the effort. ?


author: Kaj Sennel?v
body: I got it working! ?  
Thanks again [@Support Team _Clearvision_](/t5/user/viewprofilepage/user-id/130823) !!


author: Support Team _Clearvision_
body: Hi Kaj

That's great to hear.

Just FYI and you may already be aware on but on giphy the beta keys are rate limited to a maximum of 42 search requests an hour and 1000 search requests a day. This may or may not impact you depending on how often the automation runs


author: Kaj Sennel?v
body: I saw that.  
But currently, this shouldn't be an issue.  
Thanks for the heads up!


Tags: email
JQL branching validation not matching what happens at rule execution
Asked by steve.humpston:

I am using a simple JQL Branch after manual trigger that is 'validated' using the inbuilt tool (lower right of input box) and finding one issue but when the rule actually runs it throws an error claiming it cant find any issues. What could be the difference between the validation and the actual execution?

![Screenshot from 2021-09-16 15-40-55.png](https://community.atlassian.com/t5/image/serverpage/image-id/160670iDD74C949BDE776A2/image-size/large?v=v2&px=999 "Screenshot from 2021-09-16 15-40-55.png")

*** ** * ** ***

![Screenshot from 2021-09-16 15-41-16.png](https://community.atlassian.com/t5/image/serverpage/image-id/160671i95E8326237426A91/image-size/large?v=v2&px=999 "Screenshot from 2021-09-16 15-41-16.png")


Answers:
author: Fabian Lim
body: Hi [@steve.humpston](/t5/user/viewprofilepage/user-id/4532490)

Which project is calling this rule? If you are branching to a different project, you need to ensure that you set this rule as a global rule and set the multiple projects that the rules applies to.

Link: <https://blog.codebarrel.io/automation-rules-can-now-be-restricted-to-run-in-multiple-projects-910594bee2f0>

comments: author: steve.humpston
body: Thanks for the help Fabian, I did have the rule scope setting set to single project and was calling the rule from that project. However on your prompting I changed the rule scope to global and it now works. There were obviously issues with my Multiple Project and Single Project rule scope


author: Bill Sheboy
body: Hi [@steve.humpston](/t5/user/viewprofilepage/user-id/4532490)

I am glad to learn you got the rule to work.

Just a heads up: Please note the license level and execution limits for global/multi-project rules if you are using cloud version, so check with your site admin to confirm how many executions you get per month.

Kind regards,  
Bill


author: Kamil Blicharski
body: Have you tried to uncheck this box below your JQL query?

"Only include reports that have changed since the last time this rule was executed"


Tags: jql
Is there a way to extract a Confluence link out of a description and link it properly?
Asked by Cory Tsang:

Hi,

My teams seem to be unable to remember to use an "official" Confluence link type when linking pages to issues and, instead, paste links into the descriptions. I was trying to build an automation rule that can scan the description for a Confluence link and properly replace it but I didn't see anything other than an issue link action.

Is this even possible?

Thanks,

Cory


Answers:
author: Bill Sheboy
body: Hi [@Cory Tsang](/t5/user/viewprofilepage/user-id/1186812)

Would you please clarify a bit what is happening and what you mean by "official Confluence link"? For example, what are team members pasting into the issue description and what happens when they do so?

Kind regards,  
Bill

comments: author: Cory Tsang
body: Rather than using the "Link Confluence Page" menu action on an issue, they are just copying and pasting the url to the Confluence page into the description. Ideally, the description field might detect the URL comes from the same site and auto-converts it to a linked Confluence page.  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/254685i25B2D3210F29B9D2/image-size/large?v=v2&px=999 "image.png")


author: Bill Sheboy
body: Thanks for clarifying, [@Cory Tsang](/t5/user/viewprofilepage/user-id/1186812)

I have not tried this, but it appears those links are "remote issue links", and there is a REST API to manage them: <https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-group-issue-remote-links>

Perhaps you could extract the URL from the description and then call the REST API with a web request to do this. To learn about calling the REST API from a rule, please take a look at this article: <https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828>
How can I sign up for Jira Automation newsletter & release notes?
Asked by Kalin U:

Hi.

I have missed any announcement for new triggers and actions in Automation for Jira Cloud. Like these three: Lookup issues, Edit request type \& Edit comment:

![New Automatino actions.png](https://community.atlassian.com/t5/image/serverpage/image-id/160503i85AD7FE674848122/image-dimensions/271x244?v=v2 "New Automatino actions.png")

How can I follow what's new with Automation (cloud only)? For the core products, there is [Blog Posts \| Atlassian Cloud \| Atlassian Documentation.](https://confluence.atlassian.com/cloud/blog)


Answers:
author: Mykenna Cepek
body: Sometimes this information is posted in an **Jira \> Articles** area, which you can follow here:

<https://community.atlassian.com/t5/Jira-articles/bg-p/jira-articles>

You can also watch the **Atlassian Cloud \> Documentation \> Blog** area for feature lists being rolled out each week:

<https://confluence.atlassian.com/cloud/blog/>

Others might have additional suggestions, but those are a start. Be sure to be logged in (to the Community or Support areas) before setting yourself as a "watcher".

I too wish there was a way to get more of a "customize feed" of the changes to our cloud product updates as they are deployed. I watch the above two, and still I am surprised by some New Features (as you noted in your OP).

HINT FOR ATLASSIAN: Many of us *continue* to feel out-of-the-loop about what is changing on the Cloud products we Administrate. Not knowing about cool new features is a NET-ZERO VALUE for your customers.

Like [@Kalin U](/t5/user/viewprofilepage/user-id/4421738) I've been trying desperately for a long time to jack-in to the appropriate feeds. Yet I know that I am missing things, despite my efforts. At minimum, a list of options for Admins to watch, per-product, would be a start.

comments: author: Bill Sheboy
body: Hi [@Kalin U](/t5/user/viewprofilepage/user-id/4421738)

I re-posted your idea and a link to this post in the "Jira Automation - all the resources you need in one page" to see what the automation product-people think:

<https://community.atlassian.com/t5/Automation-articles/Jira-Automation-all-the-resources-you-need-in-one-page/ba-p/1388465>

Kind regards,  
Bill


author: Kalin U
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) , thanks for the suggestion. I see that John from the Atlassian team [suggested](https://community.atlassian.com/t5/Automation-articles/Jira-Automation-all-the-resources-you-need-in-one-page/bc-p/1807538#M494) this place: <https://community.atlassian.com/t5/Jira-Automation/ct-p/automation>.

[@Mykenna Cepek](/t5/user/viewprofilepage/user-id/3527113) , many thanks for your suggestions.


Tags: jira

jira-cloud
How can I create fix version after closing the current one automatically?
Asked by ?????? ??????:

Hi there!

My english not good, sorry.

I want create automation for create fix version after closing current version. But, closed version must be should match block if-else. If version name has label must been created version with that label in name. Else must been created simple version.

But I can't setting that script.

Please, help me.

Thanks!


Answers:
author: Curt Holley
body: I would create an automation rule along the lines of:

Trigger = Version released

Condition = Advanced compare *where a certain prefix is used for the relevant Releases*(see below)

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

Action = Create Version and ensure the newly created version has that same prefix

Perhaps {{version.project.key}} ?

Hopefully this helps?
Suggestion: PRs dependency graph
Asked by Karl Sigiscar:

A complex project with several participants can have interdependent PRs. In order to understand these dependencies, visualisation is very helpful. Currently, this is a manual process. But it could be automated if Bitbucket generated a dependency graph.

![IMG_5680.png](/t5/image/serverpage/image-id/308050i139F11427DEA2A16/image-size/large?v=v2&px=999 "IMG_5680.png")


Answers:
author: Theodora Boudale
body: Hi Karl,

Thank you for the suggestion. I can create a feature request for our development team to consider. I would need a few details before I do so:

**1.** Does your request concern Bitbucket Cloud or Bitbucket Data Center? I see that your question has the tag 'bitbucket-cloud', but the Bitbucket Cloud account with the same email as your community account doesn't have access to any repos.

If you are unsure, Bitbucket Cloud can be accessed at <https://bitbucket.org/>, while Bitbucket Data Center has a different, custom URL.

**2.** By interdependent PRs, do you mean PRs where the source branch of one PR, is the destination branch of another?

For example,  
PR-1: from feature/a to develop branch  
PR-2: from feature/ab to feature/a branch

**3.** I assume that each box in your graph represents a single PR, is that correct?

What do the different colors (white and green) indicate?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
History and Subtask - Priority
Asked by Louise de Melo Macedo:

hi, guys!

A question: Is it possible to make the subtask's priority follow a history's priority?

For example: my history has 2 subtasks, and the history's priority changed for highest and I want that my subtasks' priority changes for highest too but automatically.

thanks!


Answers:
author: Bill Sheboy
body: Hi [@Louise de Melo Macedo](/t5/user/viewprofilepage/user-id/4542331) -- Welcome to the Atlassian Community!

To confirm your use case, when a user story's priority changes, you want the priority of its subtasks to also change. Is that correct?

If so, you can do that with a rule such as:

* trigger: field change for priority
* condition: issue type is Story
* branch: on sub-tasks
  * action: edit issue to set the priority, copying it from the parent

Please look at this documentation and examples to learn more about automation rules:

* <https://www.atlassian.com/software/jira/guides/expand-jira/automation>
* <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: Louise de Melo Macedo
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)   

Thanks a lot!! Your answer helped me!!


author: Marrianna Martinez
body: This rule works when the field is edited, but I would like it to trigger on creation of the Story to copy the Story's priority down to the sub-tasks.

When i change the trigger to: Issue Created \> Issue Type = Story \> For Sub-Tasks \> Copy Priority from Parent, this rule fails. It seems to run between the sub-tasks getting created, is this why it is failing? Is there a way to have it run in an order that would work?

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

Automation rules and timing with Jira events can be challenging to reconcile. Would you please post an image of your rule, as that will provide some context. Thanks!

Until then...How are you creating sub-tasks? Normally the issue is created and then its sub-tasks can be added. If you are trying to trigger on the story creation, the sub-tasks probably do not exist yet.

So you can reverse this, and let the sub-tasks drive the action as you know the story exists by that point;

* trigger: issue created
* condition: issue type equals sub-task
* action: edit issue to copy the priority from the parent issue

This will fire as each sub-task is created. To keep things in sync, you also need a rule triggered on change of priority for the parent story, and then copy that down to the existing sub-tasks.

Kind regards,  
Bill


author: Marrianna Martinez
body: Hi Bill, I created the rule you mentioned and it was failing, but I made a few changes to other rules I have set up in the project and I'm not sure what caused it, but the rule is working now.

Thanks!

Marrianna
Unable to add .md file using git command Programmatically using C#
Asked by Ajay kumar:

Hi Team,

I have integrated bitbucket in our application and I am trying to add a folder that contains approx. **400+ .md** files using git command **(add \*) *programmatically using C# code,*** but these files remains untracked. *It works fine for .txt and .json files.*

++***Below is the sample code :***++

**bitbucketService.ExecuteGitWindowsCommand(mainDirectory, $"checkout -b {BranchName}");**   
//Code to copy some extra file and folders that contains .md file in checkout branch.  
.  
.  
.  
//Code to add .md files using git command  
**bitbucketService.ExecuteGitWindowsCommand(mainDirectory, @$"add \*");**   

**public string ExecuteGitWindowsCommand(** string workingDirectory, string arguments**)**   
**{**   
string command_result;  

Process ps = new Process();  
ps.StartInfo.FileName = GitExePath;  
ps.StartInfo.UseShellExecute = false;  
ps.StartInfo.RedirectStandardOutput = true;  
ps.StartInfo.RedirectStandardInput = true;  
ps.StartInfo.RedirectStandardError = true;  
ps.StartInfo.WorkingDirectory = workingDirectory;  
ps.StartInfo.Arguments = arguments;  
ps.Start();  
command_result = ps.StandardOutput.ReadToEnd();  
ps.StandardInput.WriteLine("exit");  
ps = null;  

return command_result;  
**}**

***It works fine for .txt and .json files. but if the folder contains more(25+) .md files then it get fail or stuck at code*** *command_result = ps.StandardOutput.ReadToEnd();*

Any help would be apricated thanks.


Answers:
author: Pramodh M
body: Hey [@Ajay kumar](/t5/user/viewprofilepage/user-id/5435677)

I'm not a novice in C# but can you try out the below and see if it works

See if it works for 1 \*.md file and then check for how many max number of \*.md files.

If the above is working, you may need to perform this operation in batches.

If any of the above steps are not working, specify the exact file name and try out performing git add

Let me know


Tags: .net

api

unknown-hosting-type
Issue with src
Asked by Alice:

Hi everyone,

I am facing an issue with accessing the src

if I check src with this URL: <https://bitbucket.org/>\<workspace_ID\>/\<repo_name\>.git/src, nothing works

but only works if I remove ".git" from URL.

<https://bitbucket.org/>\<workspace_ID\>/\<repo_name\>/src

I am trying to integrate Xcode Cloud with bitbucket cloud, so I am unable to instruct Xcode cloud to use URL without .git


Answers:
author: Theodora Boudale
body: Hi Alice and welcome to the community!

The extension .git is usually used when cloning a repo with an HTTPS clone URL.

I'm not familiar with Xcode Cloud. Can you please clarify, does this tool provide an option to open the Bitbucket repository on your browser with this URL? And do you face this issue when you try to access this URL from browser? Or are you doing something different?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Migration from AzureDevops to BitBucket cloud
Asked by Sasidhar Navuluri:

Hello Team,

I am looking to migrate few repositories from AzureDevOps to Bitbucket cloud. Can we use any REST APIs or Commands to perform this repo migration activity from ADO to BitBucket or we can only use GUI for this (*import repository option in GUI*)?

If we have any such useful commands or APIs please point me to those.

Also, curious to know if there are any REST APIs for migrating repositories from ADO to Bitbucket Server.

Regards,  
Sasidhar N


Answers:
author: Pramodh M
body: Hi [@Sasidhar Navuluri](/t5/user/viewprofilepage/user-id/5435681)

Please find the article that describes the migration process, you could have automation written if you have a large chunk of repositories

<https://www.atlassian.com/git/tutorials/git-move-repository>

```
$ git clone --bare https://external-host.com/EXTUSER/REPO.git
# Makes a bare clone of the external repository in a local directory
```

```
$ cd REPO.git 
$ git push --mirror https://HOSTNAME/USER/REPO.git 
# Pushes the mirror to the new repository on your GitHub Enterprise Server instance
```

If the repositories are in small numbers you could just go with importing the repository

Thanks,  
Pramodh

comments: author: Sasidhar Navuluri
body: Thank you so much [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) for looking into it.

My requirement is to push that bare cloned repository from ADO to **bitbucket cloud**. I am little confused on what url to use for that push. Can you please help me with that.

Regards,  
Sasidhar N


author: Sasidhar Navuluri
body: Should I create a new repository using BitBucket's interface. Take a note of that clone URL. Do the remote add (`git remote add <name> <url>`), then push everything (`git push <name> --all`, `git push <name> --tags`).

Or do we have any better solution?


Tags: bitbucket-cloud

cloud