youngmon/atlassian-qna huggingface dataset:
Copying Assets field values to Jira custom field
Asked by Kerli Loopman:

I need to copy Assets object field values to Jira custom fields with automation when Asset object is chosen to another custom field.

Below is the current automation that works for Asset fields that are text fields in assets - marked green. These ones copy the data from Assets back to Jira perfectly.

Automation **doesn't work** for Asset fields that has Attributes as other Asset object (dependency) or user picker field. This will return as an error:

*"An error occurred while requesting remote information*  
*Bad Request"*

What is the correct way to gain information from Asset attributes that use other Asset objects? The "Sihtgrupi t??p" is a multi object picker Attribute in Assets and the "Teenuse omanik" is user picker.

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


Answers:
author: Mikael Sandberg
body: The first field that you are trying to fill out is an Assets field and needs a AQL in order to be able to add value to it, something like this:

Name = {{issue.customfield_10675.xxx}}

The second field that is failing looks to be a user picker field, and if so then you have to use the Atlassian ID of the user that you want to set it to. I would recommend that you add Log action components so you can see what the smart values are returning.

comments: author: Kerli Loopman
body: Thanks for the quick answer. It did work with AQL.

So instead of {{issue.customfield_10675."Sihtgrupi t??p"}} i added **Name =** {{issue.customfield_10675."Sihtgrupi t??p"}}

I also fixed the user field syntax.

My syntax had {{issue.customfield_10675."Teenuse omanik".Account}} but was supposed to be {{issue.customfield_10675."Teenuse omanik".Account**Id**}}.


Tags: assets

jira
Connect a Task into an Epic created by the same Task into a Jira Automation
Asked by Gabriele Chiaramonte:

Hello,

I have an issue:  

I wanna create an E![Screenshot 2023-05-24 alle 12.27.56.png](https://community.atlassian.com/t5/image/serverpage/image-id/259214i0DE53B5563C09C69/image-size/large?v=v2&px=999 "Screenshot 2023-05-24 alle 12.27.56.png")pic when a Change Request (Task type) is approved.

So, here's the schematic steps:

1. Change request is approved (OK)

2. The approval creates a new Epic (OK)

3. The epic contains some info from the change request (OK)

4. The change request is considered as child of the epic already created (ERROR)

I try to modify the "Epic Link" field with no success at all  
How can I fix it?


Answers:
author: John Funk
body: Hi Gabriele - What is the error you are getting when you try to modify the Epic Link? What value are you putting in there?

comments: author: Gabriele Chiaramonte
body: Hi John thanks for the answer.  
This is the answer from audit log  

"No field or field value to be changed by ticket (this could be caused by some non-existent field values in a specific project):"  

I know that the actual configuration is wrong, but i don't know which value could be correct  

![Screenshot 2023-05-24 alle 14.52.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/259256i034F917FA9AC2F1F/image-size/large?v=v2&px=999 "Screenshot 2023-05-24 alle 14.52.52.png")![Screenshot 2023-05-24 alle 14.53.18.png](https://community.atlassian.com/t5/image/serverpage/image-id/259257i025D96F54284949A/image-size/large?v=v2&px=999 "Screenshot 2023-05-24 alle 14.53.18.png")


author: John Funk
body: If I am reading that correctly, it looks like you are trying to make the update to the original issue and not the issue that got created. You probably want to add a Branch for Most recently created issue and put the modification there for the issue.
How can I delete a filter that has been made by a deleted user ?
Asked by Rapha?l NORYNBERG:

Hi everyone,

In the filter menu, I don't seem able to delete a private filter that has been made by a user that is now deleted, I can't even edit it.  

I think I have all admins rights, so I don't understand how I'm supposed to do that.

Anyone has ever encountered a similar situation and managed to solve it ?

Thanks in advance !


Answers:
author: Manoj Gangwar
body: You can **go into Jira-\>Jira settings-\>System-\>Shared filters and then delete it** (or take over ownership).

comments: author: Rapha?l NORYNBERG
body: Hi [@Manoj Gangwar](/t5/user/viewprofilepage/user-id/4484987)  
Thanks for your help !


Tags: filter
Automating populating Summary with detail from other fields
Asked by Mark Edgar-Brown:

I am working on an automation that takes values from a number of different fields, and edits the issue summary with those values.

However I need to be able to smart variable using a user picker (single) so that it outputs just a Name.

Is it possible to take the value, write it as plain text, then use that to add to the automation.

Here is a screen snip of the portion of automation i am trying to accomplish


Answers:
author: John Funk
body: Hi Mark - I don't see the screen snip - can you try to add that again?

But basically you can Edit issue, select Summary and then in the Set value box use

{{issue.Custom Picker.displayName}} where Custom Picker is the exact name of the field. This will put the name of the user picker value into the Summary field. Add any other text around that which you like.

comments: author: Mark Edgar-Brown
body: ![Untitled.png](https://community.atlassian.com/t5/image/serverpage/image-id/259229i96A3EA11A8200C0E/image-size/large?v=v2&px=999 "Untitled.png")

This is my current flow, however when I use this smart value n an edit action on the summary, it shows an ID rather than an actual name, due to it being a user picker list I would assume


author: John Funk
body: Use {{issue.Employee.displayName}}


author: Mark Edgar-Brown
body: I'm going to assume that's in documentation somewhere and I just completely missed it. But that is exactly what I am looking for Thank you very much!


author: John Funk
body: Not a good idea to assume anything with Atlassian's documentation. ;-)

Glad it is working for you!
Automation rules
Asked by Jeremy Tatro:

I am new to setting up automation rules. I have a form in JSM that requires a supervisor approval for certain things. The supervisor does get the email when the ticket is created. Here is what I want to do. If the supervisor does not approve the request after a certain amount of time, I would like a reminder email to be sent to them. I can see the approval required trigger, but not sure what to do behind it to make it a reminder email.

Any guidance would be very helpful.


Answers:
author: Mikael Sandberg
body: Hi [@Jeremy Tatro](/t5/user/viewprofilepage/user-id/5226554),

Welcome to Atlassian Community!

You can use the scheduled component to do this, I have one that sends out reminders every morning to approvers that still need to take action:

![Screenshot 2023-05-23 at 2.03.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/259098i82F5DC0C9561462E/image-size/large?v=v2&px=999 "Screenshot 2023-05-23 at 2.03.51 PM.png")

comments: author: Jeremy Tatro
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) I have set this up to run in the next five minutes. I will let you know if this works for me.


author: Jeremy Tatro
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) The schedule setup worked perfectly. Thank you for the assistance.
Logging Time when 'Updated'
Asked by Jamie Wilson:

I have an automation to log 0m whenever an issue is 'Updated'. Several updates seem to not be triggering the automation. I've found that 'Updating' is classed as when a field is changed.

Does a status change, or commenting, also count as 'Updating'?

For further info on my use case, there is a condition in the automation that only triggers when the Initiator is within a specific group of people. I've checked that all the correct people are in the group, and it works sometimes but I can't see a trend.

The Actor for the time log automation is set to be the Initiator.

Logging 0m against a ticket means it will show up in our Clockwork free Timesheet for the team to easily see the issues they've Updated/worked on and then log time at the end of the week.

Thanks


Answers:
author: Gracjan Weso?owski _HeroCoders_
body: Hi [@Jamie Wilson](/t5/user/viewprofilepage/user-id/4812160)

my name is Gracjan and I'm Customer Success Export at HeroCoders, the team behind the [Clockwork app.](https://marketplace.atlassian.com/apps/1220750/clockwork-automated-time-tracking-timesheets-free?hosting=cloud&tab=overview)

Actually, my College is using similar automation with this approach. You might consider adding 1m instead of 0m to have better visibility on the Timesheet/Calendar.

You might consider using the trigger "Field Value Changed" and include custom fields that you want to use to trigger this automation. As far as I know, the issue updated is excluding some fields like the [**Link issue**](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Jiraautomationactions-Linkissues), [**Assign issue**](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Jiraautomationactions-Assignissue), and [**Log work**](https://support.atlassian.com/jira-software-cloud/docs/automation-actions/)actions.

You can also add several automation with different triggers like transition, comment/internal comment. I think that the issue updates would trigger too many actions. Using specific triggers would optimize the executions.

If you will do some more tests, please share the results/audit logs in case there is some weird behavior so we can troubleshoot it.

Cheers!

Gracjan


Tags: time-tracking

update
Como automatizar para que o campo prioridade mude de acordo com o meu campo de sla?
Asked by Marcelo Cardoso:

Quero fazer controle de urg?ncia de acordo com a data do sla. Como consigo automatizar para que mude a prioridade no momento em que a sla estiver faltando um dia para vencer?


Answers:
author: Anthony Morais
body: Hi [@Marcelo Cardoso](/t5/user/viewprofilepage/user-id/5225309)   

Firstly, go to **Filters** --\> **Advanced Issue Search** to find the SLA (See image below).  

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

Once that's done, start with a "**Scheduled** " trigger and check the box "**Run a JQL search and execute actions for each issue in the query**"

Put the JQL: cf\[10059\] \>= remaining(-24h)AND project = Lab  
(override for your SLA and project)  

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

Then choose the Edit issue action and choose the priority field.  

<br />

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

<br />

Here it would work, but if you wish, add after updating the priority field, send an email with the following data.  

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

<br />

**Subject:** {{issue.key}} - is close to expiring (1 hour)  

**Content:**

Hello!

We inform you that the ticket {{issue.key}} is close to expiring the resolution SLA, please check urgently!

Ticket Link:  
https://**your jira instance**.atlassian.net/{{issue.key}}

Summary  
{{issue.summary}}  

<br />

If it works for you, please mark the answer as accepted.

thanks!
Inactive user error from Webhook Data
Asked by Simon Shtipelman:

Hello,

I am working on an automation that will take information from an incoming webhook and create a ticket based off of the payload in the webhook. I am running into issue with the setting a user custom field from the payload. Audit log says the user is inactive when I know the user is active (it is me).

Here is the log with the payload data and error. Also the smartvalue I am using to set the user field:

![screenshot 1.jpg](/t5/image/serverpage/image-id/258405iF08A5DF107A25E96/image-size/large?v=v2&px=999 "screenshot 1.jpg")![screenshot 2.jpg](/t5/image/serverpage/image-id/258406iC6773CA14349F7FA/image-size/large?v=v2&px=999 "screenshot 2.jpg")

Any help would be greatly appreciated.


Answers:
author: Bill Sheboy
body: Hi [@Simon Shtipelman](/t5/user/viewprofilepage/user-id/3756610)

After the privacy changes in Jira for GDPR, I do not believe it is possible to find a user from just their name alone. Instead you need their account ID value to set an issue field.

Some possible work-arounds would be to:

* Send the account ID rather than the name with your webhook
* Using another web request in the rule, call the admin REST API to get all of the users, and then find your desired account ID with a match function
* Another work-around assumes the user has *at least one other issue assigned*: using JQL you can search for a user by name as it will get converted to the accountId. Store the results with a lookup issues action, and then reference one of them to get the id with {{lookupIssues.first.assignee.accountId}}

Kind regards,  
Bill

comments: author: Simon Shtipelman
body: Thanks for the help. I had the external vendor send over the email address of the user instead of the name and that worked without having to send a web request to Jira.


Tags: cloud
Hide transition if assignee and reporter are the same user
Asked by Daria Pavlova:

Hi colleagues!

I want two transitions for my workflow

1. Cancel - available for assignee only

2. Cancel and close - available for reporter only

but when you're both reporter and assignee you see all of these transitions and for some of our coworkers it might be confusing  

is there any way to configure a condition to hide 'cancel' transition when assignee =! reporter?  

Thanks a lot in advance!  

<br />


Answers:
author: Anna Hryhoruk _Appfire_
body: Hello [@Daria Pavlova](/t5/user/viewprofilepage/user-id/5208348) ,

I think there is some typo in your requirement. Because if you configure a condition to hide 'cancel' transition when assignee =! reporter, that means the assignee will never see 'cancel' transition, but when the assignee and reporter are the same, both transitions will be available.   
So I think you need a condition if assignee = reporter hide 'cancel' (or 'Cancel and close')so only one of those is available.

If you have [Power Scripts](https://marketplace.atlassian.com/apps/43318/power-scripts-jira-workflow-automation?hosting=cloud&tab=overview) app in your Jira , you can configure 'Power Scripts SIL Condition' on 'Cancel' transition (or 'Cancel and close' - depending on which one should be not available if the assignee and reporter are the same ) with the following script:

```
if( assignee == reporter ) 
return false;
```

Adding also some documentation about it <https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15487273/Writing+Conditions+Validators+and+Post+Functions>  

Best regards,  
Anna

comments: author: Daria Pavlova
body: Thanks a lot, I will try it


Tags: transition

workflow
My PR lists commits not on the source
Asked by Johannes Russek:

I just forked a project into my own workspace, made a change and committed it to my repository.

Now when I try to create a Pull-request against upstream, the PR contains all kinds of commits that are not mine. All of these commits are in my fork.

If I compare changes between my fork and upstream, bitbucket correctly only lists my own commit.

I have no idea why the PR tries to include all commits in addition to the one that's actually different between the repositories.

I double checked that my branch didn't do any merge shenanigans by fetching upstream and rebasing my change on it and it correctly shows everything as up-to-date.

What is bitbucket doing?


Answers:
author: Mark C
body: Hi [@Johannes Russek](/t5/user/viewprofilepage/user-id/5510817)  

Welcome to the community.  

Could you confirm whether you see a "Sync" button in your forked repository's **Source** page?  

It usually says "**Sync (X commits behind/ahead)** ".  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Can you please reduce repo size
Asked by Indresh Chandel:

I am unable to reduce repo size.


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

What we (the support team) can do is run a garbage collection on the repository. This may reduce the repository size, but if the repo still contains any large binary files, it will not be by a lot.

We cannot remove any large binary files that may exist in the repo, this needs to be done by end users. A garbage collection will also be needed after the changes are pushed, which is something that we can do if you ask us.

The link that Teodora shared has some info on how to reduce the repo size. You can also check a detailed reply I posted about a similar issue in another question here:

* <https://community.atlassian.com/t5/Bitbucket-questions/Revert-bitbucket-repository-state-to-one-day-prior/qaq-p/1908360#M76762>

If you take action to reduce a repo's size and push changes back to Bitbucket, please feel free to let me know and I can run a garbage collection on the repo (please also share the last two letters of the repo name and the last two letters of the workspace id where the repo belongs, so I can identify it).

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

Kind regards,  
Theodora


author: Teodora V
body: Hi [@Indresh Chandel](/t5/user/viewprofilepage/user-id/5510701)

Bitbucket's official documentation includes a **[detailed help desk article](https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/)** about reducing repo size. Have you tried the scenarios explained?


Tags: bitbucket-cloud

cloud
Why can't I clone a Bitbucket repo using the same password I use to log into my Atlassian account?
Asked by Muhammad Ravi Shulthan Habibi:

I just invited to private repo, and I need to clone them to my local machine. But when I do git clone it always shows up the login screen and I need to fill the password section. Once I finished fill the password, it says: Invalid Credentials. While from that one password I can log in to my Atlassian account in browser now.


Answers:
author: Robert Wen_ReleaseTEAM_
body: hello [@Muhammad Ravi Shulthan Habibi](/t5/user/viewprofilepage/user-id/5510670) ! Welcome to the Atlassian Community!

The use of the Atlassian account password for cloning, and interacting with a local repo over https was deprecated as shown in this Community question.

<https://community.atlassian.com/t5/Bitbucket-questions/Authentication-Failed-cant-access-own-bitbucket-repo-due-to-quot/qaq-p/2427770>

You can set up an app password and connect over https with that and your Bitbucket username. <https://community.atlassian.com/t5/Bitbucket-questions/Authentication-Failed-cant-access-own-bitbucket-repo-due-to-quot/qaq-p/2427770>

comments: author: Muhammad Ravi Shulthan Habibi
body: It works, finally! Thanks for your help Sir!


author: Robert Wen_ReleaseTEAM_
body: Glad to hear! If what I said worked, please mark the question as Answered.


author: Muhammad Ravi Shulthan Habibi
body: Done!


Tags: bitbucket-cloud

cloud
Slack integration does not work
Asked by Ahmet Bilal Badin:

I would like to add Slack notifications to our Bitbucket repositories. However, it's failing for some reason.

I tried both methods: On the 'Settings \> Slack integration' page and when I run the "/bitbucket connect" command on Slack, the page loads in an endless loop and the process never completes. After 10 seconds, "Wait or Cancel" options appear.


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

Are you using the latest version of one of the browsers Bitbucket Cloud supports? The supported browsers can be found on this page:

* <https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html>

If you are using the last version of a supported browser:

* Try using an Incognito / Private window of this browser
* Try disabling all browser extensions before you make the integration

Please feel free to let me know how it goes.

Kind regards,  
Theodora


author: Josh_Unito
body: You could try with [Unito's integration for Bitbucket and Slack](https://bit.ly/ATL-BitbucketSlack-Int). We're an Atlassian partner with support for both tools. You can set up a flow in around 5-10 minutes that sends Slack messages to a channel of your choice whenever a certain issue is created in Bitbucket, or create Bitbucket issues whenever a message is sent in a particular channel.


Tags: bitbucket-cloud

cloud
Log Rotation for Bitbucket Cloud Self-Hosted Runners
Asked by Gajesh Bhat:

Are logs for Bitbucket Cloud's self-hosted runners automatically rotated? If not, Can anyone provide some guidance on setting up log rotation for these logs across different operating systems (Linux, Windows, and Mac). Specifically:

* **Linux** : I have experience using `logrotate` on Linux. Are there any additional recommendations or best practices for runner logs generated by Bitbucket Runners (For example, the frequency of rotation and how many backups to store.)?
* **Windows**: What are the best methods or tools for setting up log rotation?
* **Mac**: What are the recommended practices for managing log rotation on macOS?

**Note:** I am not referring to Docker-based Linux Runners, as those logs are managed using a Kubernetes Runner Autoscaler setup I have provisioned using the instructions here: [Autoscaler for Runners on Kubernetes](https://support.atlassian.com/bitbucket-cloud/docs/autoscaler-for-runners-on-kubernetes/)

Any suggestions or instructions would be greatly appreciated. Thank you!


Answers:
author: Theodora Boudale
body: Hi Gajesh,

The default configuration should delete old log files after 7 days. If you want to change that, you can check our guide below for configuring logging in self-hosted runners:

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-logging-in-self-hosted-runners/>

Kind regards,  
Theodora

comments: author: Gajesh Bhat
body: Thank you Theodora. :) That's what I was looking for.


author: Theodora Boudale
body: You are very welcome, Gajesh! Please feel free to reach out if you ever need anything else!


author: Om Joshi
body: Anyone has implemented logrotate on DC with redhat logrotate?


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud