youngmon/atlassian-qna huggingface dataset:
How do I stop Jira email notifications from sending when Jira Automation assigns issue to yourself?
Asked by Dan H:

Very simple rule execution for when a "sub-task" is created; if the Assignee is blank, then assign to the Reporter:

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

However **every time this action occurs, Jira will send out email notifications** because 'Jira Automation' is assigning the ticket, so it's not considered a self-action (whereby email notifications don't get sent). Shown here:

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

**Is there a way round to stop this from happening?**   
In other words this should be a 'silent' event because the reporter triggers the rule, and so does not need to be notified.

P.S. obviously our users don't want to turn OFF 'get email activity if Assigned an issue' from Jira Personal Settings, as this is needed is an actual user changes the Assignee.


Answers:
author: Dan H
body: Okay so I think I may have just figured this out myself straight after posting lol.

Under Rule details, I simply **changed the Actor** from 'Automation for Jira' to 'User who triggered the event'.

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

And now no more email notifications are sent!

Please anyone do let me know if there's a better alternative to this solution though, thanks :)

comments: author: Howell, Adrianna
body: I don't see that option. I'm not sure if that's only available in the cloud. It's really frustrating because I can't easily determine view e-mail notifications what actually requires my action and what it just a senseless notification because I built out several notifications in a number of different projects for different teams.


author: Curt Holley
body: You could also do this via a Post Function in the relevant Workflow.

Example: The field **Fix versions** will take the value from **Fix versions** . Source issue is the parent, destination the sub-task.

See here for details/inspiration: [Configure advanced issue workflows \| Atlassian Support](https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/)


author: John Conneely
body: FYI - if you would like Jira notifications to be stopped as well as emails, you should vote for this here: <https://jira.atlassian.com/browse/JSWCLOUD-22681>


Tags: email

event

issue

jira

notification
How to access worklog of issues under an epic and capture it in a smart value
Asked by Meer Mansubdar:

Hi All,

I am using the Jira automation to sum the logged hours (worklog).

Trigger is an issue worklog update. Now once the worklog is updated (worklog update trigger) for an issue, I want to sum up the worklog of all the issues under the parent epic and add it to a custom field in epic.

Or maybe from an epic only I will use the trigger and I want to sum up all the worklog from the child issues (stories/bugs/tasks)

Or how can I capture worklog "changed from" for defining smart value

Is it possible?


Answers:
author: Bill Sheboy
body: Hi [@Meer Mansubdar](/t5/user/viewprofilepage/user-id/2497586)

This article on summing up logged work with automation seems to be what you are asking:

<https://community.atlassian.com/t5/Automation-articles/How-to-sum-up-logged-hours-using-automation-in-Jira-Cloud/ba-p/1409115>

Please take a look to see how it helps.

Best regards,

Bill
Jira Service Desk Automation
Asked by Derek Guzenski:

I'm looking to setup a customized automation rule in Jira service desk, below is the criteria:

**Triggered**: when an issue is created

**If**: Work-effort type = "yes'

**Then**: Update Priority to 'High'

I have created this rule and applied it but when a request comes in and meets the above criteria, the priority doesn't change to 'high'. When I check the rule's log, it does show the specific issues meeting the criteria. Additionally I am the project owner so permissions shouldn't be an issue. Any thoughts on why this may not be working properly?


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

Would you please post images of your automation rule and an audit log entry showing a case where you expected the value to change? That will provide more context for the commuunity to offer ideas. Thanks!

Best regards,

Bill


Tags: cloud

jira-service-desk
Update several Epics Story points with manual trigger
Asked by matthieugd:

Hello,

I created 2 automations to update the Epic story point field with the sum of its story points after an update on one of the stories. One of automation is to update the story point field and the other (with a different filter) is to update a custom field "story points done" on the Epic.

This is working fine but I would like a manuel trigger to cover less frequent scenarios that will not be managed by my automations : moving a story from epic to another, deleting a story, etc.

This manual trigger will take a group of Epics (found by JQL based on the fix version field) and for each epic do the same sums to update the fields.

I'm not sure how to do that with the lookup and/or branch feature of JIRA automation.

Any idea?

Matthieu


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

This is more challenging as you cannot nest branches or directly call one rule from another...however you can trigger one rule from another to do this. How about this:

* For your manually triggered rule, for each impacted epic add a special comment: "recalc story points done, requested {{now}}"
* Add a second rule, triggered on comment matching the pattern and checking the issue type as epic, use your logic to update the custom field. Please note this rule is triggered by the other, so you need to check the option under rule details: Allow rule trigger.

By the way, for your edge cases you may not need the manual rule for clean-up/catch-up. Instead if you can find a way to catch the event with a trigger then you could also add the same trigger comment to have the epic update.

Best regards,

Bill

comments: author: matthieugd
body: Thank you Bill, I will give a try !


Tags: cloud
Update a field with the date of the first transitioned story of a parent
Asked by anneliese_kalwy:

Hi,

I am looking to enable automation that will update a custom field on a parent issue with the date that the first linked child at the story level is transitioned from To Do to In Progress.

I.E When the first STORY of an Epic that is linked to an Initiative is moved from To Do to In Progress. The custom field I want to update is on the initiative with {{now}}


Answers:
author: Hana Ku?erov?
body: Hi [@anneliese_kalwy](/t5/user/viewprofilepage/user-id/4038136) ,

hopefully I understand it right...

I would do something like:

WHEN: Issue transitioned from To Do to In Progress

IF: Issue Type equals Story

For Parent:

- if "date field" is EMPTY

- update "date field" to now

comments: author: anneliese_kalwy
body: Thank you Hana yes I believe this is what I'm after!
GitLab automation transitions triggers
Asked by Mateusz Janus:

Hello,

does anyone knowns if hat DEVops automations work....? I have checked 1000 URLs to find the answer. I am jira CLOUD and GitLab Cloud. Want to provide transition automation when

GITLAB -\> Branch crated then

JIRA -\> change the status

I am sucesfully intragrated between the systems. Jira does not return ANY error of auto JOB. NO logs. NOthing, just nothing happens

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


Answers:
author: Curt Holley
body: I presume the Jira issue key is mentioned in the code?

Can you see the evidence of the branching in the Jira issue in the development section?

comments: author: Mateusz Janus
body: I have a evidence in WEB links but regarding the DEVELOPMENT section I do not know what you mean. Under JIRA ticket there should some additional section?

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


author: Curt Holley
body: Yeah, you should have something like

![Screenshot 2021-04-07 143450.png](https://community.atlassian.com/t5/image/serverpage/image-id/137701i569852B7E2F721FF/image-size/large?v=v2&px=999 "Screenshot 2021-04-07 143450.png")

See here for more details: [View development information for an issue \| Jira Software Cloud \| Atlassian Support](https://support.atlassian.com/jira-software-cloud/docs/view-development-information-for-an-issue/)


Tags: branch

gitlab

integration
Need help with automation on JIRA
Asked by azfar siddiqui:

Hi,

I am trying to setup automation on Jira between two issue types (Epic and Task). the automation is basically that when epic is transitioned to another state, task follows. The roadblock i have hit in this is that some of the transitions in workflow have validators that check for certain fields to be filled in (such as comment, target date) etc using transitioning screens.

Now the automation fails at these transitioning's because i cannot use automation to copy over these fields onto transitioning screen(from epic). Is there any other way to work around this? please let me know??


Answers:
author: Bill Sheboy
body: Hi [@azfar siddiqui](/t5/user/viewprofilepage/user-id/4105450)

If you have the data to set the Task's fields (possible from the Epic) prior to the transition you can set them with the automation.

Please post an image of your rule and the audit log from the rule execution if you are still having difficulties. That will help the community provide you ideas to try.

Best regards,

Bill

comments: author: azfar siddiqui
body: Hi Bill,

Thanks for the reply, we will have the option to fill out those fields from Epic as it will follow the same workflow but i dont see a way of copying that data from automation.

Attaching the screenshots of automation rule, and audit log.

![jira.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/137497i7F7E1D8A503205DA/image-size/large?v=v2&px=999 "jira.PNG")

Audit log

![jira 2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/137498iC73000B450B0D315/image-size/large?v=v2&px=999 "jira 2.PNG")


author: Bill Sheboy
body: Thanks for that information.

After your branch starts, and before the Transition, you can edit the Task and choose to copy fields from the Trigger Issue.

To do so, after you select a field to edit, select the ... menu at the right, and then Copy From, and Current Issue (which is the triggering issue).


author: azfar siddiqui
body: Hi Bill,

Thanks for the reply, i cannot find "comment field" that i can use to copy from. That is one of the fields required to transition to next step. any way around this?

Thanks for your help with this matter.![jira 4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/137644i8839ED0F8A146EE4/image-size/large?v=v2&px=999 "jira 4.PNG")


author: Bill Sheboy
body: Commenting on an issue is a separate action from edit. Perhaps try to add that Comment action inside of the branch, and you may add the value from the trigger issue's comment. Unfortunately this method will not preserve the original author, but you could add that to the comment.

```
Comment from {{triggerIssue.comment.last.author.displayName}}?
Created:?{{triggerIssue.comment.last.created.jiraDate}}
{{triggerIssue.comment.last.body}}
```


author: azfar siddiqui
body: Bingo! thanks Bill that worked like charm
Is it possible to delete worklogs using Advanced Field Editing?
Asked by Titus.c:

I am trying to create an automation rule which **automatically takes the time logged on a Sub-task and moves it to the parent issue**.

So far, I've managed to achieve everything I wanted *apart from*removing that particular instance of logged work. I don't mind if I do this through changing the time spent on the issue or delete the log entry itself, I'm just trying to achieve this regardless of the means.

I've attached a screenshot of the Automation. I've tried multiple approaches on the Advanced Issue field edit, but nothing's worked so far. It might just boil down to me not being very well versed in the ways of JSON language, but I am hoping to find some assistance here. All suggestions welcome! :)

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


Answers:
author: Bill Sheboy
body: Hi [@Titus.c](/t5/user/viewprofilepage/user-id/3980497)

I do not believe that is possible with automation yet. Here is a suggestion to add the feature:

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

Looking over the [advanced edit with JSON functions](https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/), you could structure an update with a remove, although I am unclear if that would work. It seems the only way to do this currently is through the UX by deleting from the history list.

Best regards,

Bill
Reduce Repo Size
Asked by awe_learning:

The size of the repo shows more than 2.7 GB.

Could you delete large files from old commit history so size will be decreased or run git gc for me?


Answers:
author: Ben
body: Hi [@awe_learning](/t5/user/viewprofilepage/user-id/5423723)

We do not have access to remove any data from any users repositories, this is as per our security policies concerning the protection of user-generated content.

You will need to follow our guide below to either delete files or move large files to LFS storage:

* <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/>
* <https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/>

To check your largest files, you can use a command such as the one below:

```
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
```

Once this has been done, please let us know so we can trigger a gc from the server-side.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: awe_learning
body: But I have two branches  
in which there are only 3 files.  
I removed one large branch, but the size of the repository did not decrease


author: Ben
body: Hi [@awe_learning](/t5/user/viewprofilepage/user-id/5423723)

For the repository to finish its size reduction, a gc needs to be executed on the server-side. These are performed automatically once certain trash threshholds are met, but in cases where there are only a few files that need to be cleaned up - we run these ourselves to speed up the process and help to get you up and running again :)

I've just performed a garbage collection on the server-side, this has reduced your repo size from 2.7GB to 46.9KB.

Please clone your repository fresh to avoid the potential for pushing back old refs and inflating the size again.

Hope this helps!

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
We couldn?t log you in
Asked by aparra:

![Captura.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/304590iAE18209A6F78E87A/image-size/large?v=v2&px=999 "Captura.PNG")

No matter what browser or PC I try to log in with, this same error persists. I can log in fine to atlassian.com and I can use this same account to post this question, but I can't log in to Bitbucket.


Answers:
author: Ben
body: Hi again,

Usually this message appears when your account is deactivated due to inactivity - but I can see that the user account tied to this particular email address is active. Are you able to clear your browser cache completely before attempting to login? I would also suggest disabling all add-ons in case something is interfering with the HTTP request.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
There was an error that occurred while attempting to bare clone the repository.
Asked by Nagaraja:

I am encountering an error while performing a bare clone of a repository. My repo's has a 3.1GB size

Git command : \['git', 'clone', '--bare', URL\]

returncode = 128

Error:

stderr=b"Cloning into bare repository '/bucket_files/{b4de1a8f-5733-4507-902c-4dff4b4c81eb}/adp-t245-2.git'...\\nerror: unpack-objects died of signal 9\\nfatal: unpack-objects failed\\n"


Answers:
author: Theodora Boudale
body: Hi [@Nagaraja](/t5/user/viewprofilepage/user-id/5043321),

The signal 9 usually indicates a memory-related issue.

You can run **git config --list** on a terminal application on this machine and check if there is a value in the output for the option **pack.windowMemory**. If there is, you can try increasing that value.

Otherwise, I would suggest checking memory usage on the machine during the clone operation. If memory seems to be close to the limit while the clone is happening, then more memory may be needed for the machine to perform that clone.

Kind regards,  
Theodora

comments: author: Nagaraja
body: I ran the 'get config --list' command but the 'pack.windowMemory' option is not available in the output.  
The memory usage limit has been set to a high value.


author: Nagaraja
body: I encountered an error while attempting to clone a repository in BitBucket using 'bare clone'. However, I was able to successfully push the same repository into GitLab using 'bare clone' and 'mirror push'. I then ran the command \['git', 'clone', '--bare', URL\] and it worked without any issues.

Could you please help me understand why it's not functioning properly in Betabucket?


author: Theodora Boudale
body: Hi [@Nagaraja](/t5/user/viewprofilepage/user-id/5043321),

I see that you created a support ticket for this issue and my colleague who is working on the ticket has asked for the repo URL to check for large files and dangling commits. You will receive further updates in the support ticket.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Create folder based off of a variable
Asked by Thomas Peters:

Using a self host windows runner, I am having difficulty creating a folder based off of a version stored in a variable. EG:

script:  
- VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)  
- New-Item -Path "A\\Path\\" -ItemType "directory" -Name $VERSION  
- xcopy target A\\Path\\\\${ $VERSION }\\ /E /H /C /I  
I am not sure of the syntax to use and I come from a DevOps Pipeline background


Answers:
author: Thomas Peters
body: solved using  
$env:BITBUCKET_TAG


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

server
Self.Hosted Windows Runner have no log
Asked by Jeremy Chin Wang Cheung:

Hi all,

First of all I am very new to the pipeline/runner and trying to make sure of it.

I am currently having a PoC on self.hosted windows runner, however, the pipeline failed somehow

When I try to check on the web UI, there's a message (with an exclamation mark) saying "failed to download log".

I now have no idea how to check what's failed (as the log file is being cleared after the build step on the server too).

Any one can give me some hints on what I did wrong here?

Thank you very much.

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


Answers:
author: Thomas Peters
body: check installation location of your runner. eg c:\\myrunner. There should be a temp folder with another folder inside which contains logs

comments: author: Jeremy Chin Wang Cheung
body: Thanks for your reply.

I found all the log files on the server is being cleaned up after every build.

I try to quickly copy out the files while the runner is working but it's hard to capture the file as it appears real quick and then gone..   

And i am just running a simple dot net build script currently.

# Template .NET Core build

# This template allows you to validate your .NET Core package.  
# The workflow allows running tests and code linting on the default branch.

# To run your pipeline on a Windows machine, create a self-hosted Windows runner.  
# For instructions on setting up a Windows runner, see <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/>

image: mcr.microsoft.com/dotnet/core/sdk:3.1

pipelines:  
default:  
- parallel:  
- step:  
name: Build Debug  
runs-on:  
- 'self.hosted'  
- 'windows'  
- 'poc'  
script:  
- dotnet build --no-restore --configuration Debug

Any hints are much appreciated. Thanks.


author: Syahrul
body: G'day, [@Jeremy Chin Wang Cheung](/t5/user/viewprofilepage/user-id/5403988)

Can you raise a support ticket to investigate this issue further? You can raise them at:

<https://support.atlassian.com/contact>

Make sure to select **Technical issues and bugs** and use your paid workspace URL

Regards,  
Syahrul

comments: author: Jeremy Chin Wang Cheung
body: Thank you. Will try raising a ticket.


Tags: bitbucket-runners

cloud

data-center

windows
Bitbucket user id reactivation for repository
Asked by Vaidyanathan:

Hai,

I Have created bitbucket repositories with user id as One of my previous mail id. Now that mail is deactivated, how to recover my previous repositories by using that existing bitbbucket user (deactivated mail id)


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

If this concerns a Bitbucket Cloud account (<https://bitbucket.org/>) and

* you either have on your computer SSH keys that you set up for this account
* or you remember the username and you have an app password for that account with at least Repositories - Read permissions

you should be able to clone or pull from these repos if you have existing clones.

Otherwise, you would need to log in to the old account to transfer the repos to another account you have access to now. That should be possible if you remember that account's password and if login to that account is possible without SSO.

If login to the old account is not possible and if you don't have SSH keys or an app password, then the only way to recover access would be by reactivating the email so you can request a password reset email and log in.

Kind regards,  
Theodora


Tags: unknown-hosting-type
Cannot clone after revoking app password
Asked by Daniel Ho:

We were trying things out, and created an app password. We were then able to clone the repository after being prompted for the app password. However, after we revoked the created app password and created a new one, when we tried to clone, it just said

remote: Invalid credentials

This is on a Mac. How can we remove the previously stored app password, and what can we do to use the new one?


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

Git can be configured to use a credential manager. In this case, the first time you try to clone a Bitbucket Cloud repo you'll get asked for a password. After you provide the app password, it is stored in the credential manager and it is used the next time you clone, pull, or push to a Bitbucket Cloud repo.

For Mac, this credential manager is typically Keychain Access. You can confirm by running the following command on a terminal:

```
git config --system credential.helper
```

and

```
git config --global credential.helper
```

If the output of any of these two commands is **osxkeychain**, then Keychain Access is used. You can open Keychain Access on your Mac, search for any saved credentials for bitbucket.org, and remove them.

After you remove them, you should get asked for a password again the next time you clone, pull, or push to a Bitbucket Cloud repo.

In case the commands above indicate a different credential manager than osxkeychain, the credentials should be removed from the credential manager you use.

Kind regards,  
Theodora


author: Tbtc Dovgan
body: ...


Tags: bitbucket-cloud

cloud