youngmon/atlassian-qna huggingface dataset:
How to handle automation actions when the data is a date within a text field.
Asked by David Quiram:

In our IdP (Okta) we have a custom text field to facilitate a specific date for people. I will be syncing this field over to a custom read-only text field in Atlassian, via MindPro Sync, so that it will be available on issues and for Automation.

I would like to setup an automation where an issue is auto-closed with comment based on that "date". If it were a true date field, I could use a smart value time comparison, but since it's a text field, I feel that wont be possible via the exact same means.

Due to the systems in place, we are locked into use text fields for this.

Does anyone have suggestions on this? Thank you for your time and consideration.


Answers:
author: Trudy Claspill
body: Hello [@David Quiram](/t5/user/viewprofilepage/user-id/4501008)

There are functions that can be applied to smart values in automation to convert text to dates that can then be used in date-applicable functions.

[@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) provided an answer to a similar question on [this post](https://community.atlassian.com/t5/Jira-questions/Is-it-possible-to-convert-string-into-date-time-from-Jira/qaq-p/2354974) and [this post](https://community.atlassian.com/t5/Jira-questions/Smart-Values-String-type-conversion-to-Date/qaq-p/2106719) referencing the toDate function.

comments: author: David Quiram
body: Amazing! Thank you so much. I'll def be digging into those posts next week!


author: David Quiram
body: So... I have been picking away at this for a few hours now trying different combinations to see if I could land on the solution and it's not quite catching. What am I missing?

My Okta variable has the value of March 26, 1990. I have tried this as both:  
1990-03-26  
1990 03 26

In the automation, I store the data into a variable {{TestVariable}} and I give it the smart value of:  
{{issue.customfield_10385.toDate("yyyy-MM-dd")}}  
{{issue.customfield_10385.toDate("yyyy MM dd")}}  
{{issue.customfield_10385.toDate(jiraDate)}}

I then log the action so I can visually inspect what is being used. I log both the variable and the smart value for comparison and for all three variants that I have tried we get:   
1990-03-26T00:00:00.0+0000

If I am reading documentation correctly, it is putting the time value in there because that is the default format for a date/time value. So, am I doing something incorrectly with my smart value?

Moving on, the next thing I tried to log was adjusting the date/time value by doing a plus 1 month to it. I tried the following and both display no data, but don't error:  
{{issue.customfield_10385.toDate("yyyy-MM-dd").plusMonth(1)}}  
{{TestVariable.plusMonth(1)}}


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
extract the values from a status field via api
Asked by EDUARDO JOSUE ZAMORA VALVERDE:

![getStatusValues.jpg](/t5/image/serverpage/image-id/348273i5BAF2B9EAD3B4BDE/image-size/large?v=v2&px=999 "getStatusValues.jpg")

Through the API, how can I get these values ??(Active, Support Requested, Deleted)?, it is an attribute of an object


Answers:
author: Vijay Dadi
body: Hello,

you can get it using smart values like {{status.name}}. If it is via api, it will be like

{{webResponse.body.status.name}}. Hope this helps

Vijay


Tags: cloud

jira-service-management

jira-service-management-cloud
AQL for Automation
Asked by Nancy Galvez:

I am trying to create an automation. One ticket will trigger the creation of another ticket. I want to transfer the Asset Field to the new ticket. The asset field is called "Customer Object" or (customfield_10820).

I have tried {\[triggerIssue.Customer Object}} but this does not work. Since the field only takes AQL, what would be the AQL syntax to work?


Answers:
author: Mikael Sandberg
body: Since the field holds the object key (what you see is the display name) then this AQL should do the trick for you:

Key LIKE {{triggerIssue.Customer Object}}

comments: author: Nancy Galvez
body: Thank you! That worked


Tags: cloud

jira-service-management

jira-service-management-cloud
Filtering for all JIRA issues worked on within a timeframe.
Asked by Rachel Frechette:

Hello all,

I want to get a list of all of the JIRA tickets that we worked on for the current week.

I need the ones that are in any status, even Done.

I have no idea how to even begin to do this.

I don't know what dates to use or how I would format the query.

I've only got. "Team Name" = Team-1 AND ...

Can this be done? T

hanks so much.


Answers:
author: Manoj Gangwar
body: Hi [@Rachel Frechette](/t5/user/viewprofilepage/user-id/5476530)

project = "YourProjectKey" AND updated \>= startOfWeek() AND updated \<= endOfWeek()

Replace `"YourProjectKey"` with your actual project key. This query will return all issues that were updated during the current week.

comments: author: Rachel Frechette
body: Thanks so much for your help Manoj!

I really needed this today!


author: Laura Campbell _Seibert Media_
body: Hi [@Rachel Frechette](/t5/user/viewprofilepage/user-id/5476530) ,

I recommend checking out this free course [https://university.atlassian.com/student/path/1687678-finding-information-with-search-and-filters-in-jira?sid=9a76b062-72d8-4bed-8cc5-2a71e89bdbb3\&sid_i=0](https://university.atlassian.com/student/path/1687678-finding-information-with-search-and-filters-in-jira?sid=9a76b062-72d8-4bed-8cc5-2a71e89bdbb3&sid_i=0)

as learning the basics of JQL is an essential skill when using Jira.

comments: author: Rachel Frechette
body: Thank you.


Tags: cloud

jira-service-management

jira-service-management-cloud
I just wanted to know if we can update the creation date after lodging any ticket ?
Asked by Atif Ul Aftab:

Suppose I created a ticket and later on I realized it the issue was actually on going before the ticket creation date. Then is there any way to update the ticket creation date ?


Answers:
author: Aaron Pavez _ServiceRocket_
body: Hi [@Atif Ul Aftab](/t5/user/viewprofilepage/user-id/5590297)

Sadly no, you can't. You could create a new issue by importing a CSV and setting the date to another date.

OR you could create a custom field to hold the original date too.

Regards

Aaron

comments: author: Atif Ul Aftab
body: Hello  

Thank you so much. I am really new to this community. I was thinking almost in the same way but thank you again for showing me the path.


author: Mikael Sandberg
body: Hi [@Atif Ul Aftab](/t5/user/viewprofilepage/user-id/5590297),

Welcome to Atlassian Community!

No, the created date cannot be changed, that is set when the issue is created and you have no control over that. You could work around it by creating a custom date field that you use as discovery date.

comments: author: Atif Ul Aftab
body: Hello  

Thank you so much. I am really new to this community. I was think almost in the same way but thank you again for showing me the path.


Tags: cloud

jira-service-management

jira-service-management-cloud
How is this schedule Assets import automation useful?
Asked by Rodney Estrada:

Hi,

Just wondering the purpose of this automation that [schedules Assets imports](https://confluence.atlassian.com/jirakb/how-to-schedule-assets-import-using-automation-for-assets-1155466867.html). It looks like it just runs the existing configured CSV file. How is running the same CSV file again useful?

I'm trying to figure out a way to connect Assets with Jamf so changes in Jamf automatically get pushed to Assets, either via API or some app integration.

Example: Laptop "A" is purchased and details entered into Jamf. Then Laptop "A" details are pushed automatically to Assets either immediately or next day.

Thanks,


Answers:
author: Dave Mathijs
body: Yes, this. Unfortunately, these existing DC features are ~~not yet~~ still not available in Cloud. I mean, one simply doesn't use a CSV for synchronization. Database, JSON, LDAP are the ones we need for scheduling.

comments: author: Rodney Estrada
body: [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) , Indeed!


Tags: assets

cloud

jira-service-management

jira-service-management-cloud
Is there a way to configure the QR labels produced by Jira Asset Management for asset matching?
Asked by William:

We are migrating from our old asset system to Jira Asset Management and everything is going well.

But the QR labels are produced with only the Key in human readable text. This is a problem because if you produce 300 labels for existing assets and then mail them to a location there's no good way to match the label to the asset.

Is there a way to at least include a built-in field like name along with the Asset Key in the human readable portion of the label ?


Answers:
author: Dave Mathijs
body: Hi [@William](/t5/user/viewprofilepage/user-id/5596756) welcome to the Atlassian Community!

Looking at the documentation article [Print QR codes](https://support.atlassian.com/jira-service-management-cloud/docs/print-qr-codes/), there isn't much or rather nothing to configure besides the size.

I would suggest to provide in-product feedback to Atlassian directly via the Help icon or to submit a suggestion via support. The Atlassian Community won't be able to solve this one for you.


Tags: cloud

jira-service-management

jira-service-management-cloud
Why "//" is being added as suffix to reporter's email address
Asked by Bharat Kumar Bondalapati:

I came across Jira tickets and can see that ''//'' is being added as suffix to the reporter's email address. This used to work fine before and nothing has changed.

Any solution to resolve this?![error.jpg](/t5/image/serverpage/image-id/348202i31DFE653B7113674/image-size/large?v=v2&px=999 "error.jpg")


Answers:
author: Bharat Kumar Bondalapati
body: [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) Yes, it is connected with an identity provider (Azure).


author: Andrew Hewitson
body: This started appearing on our instance recently as well. We linked Azure to our Atlassian Guard about 3 months ago with all users imported weeks ago. We also use JSM Asset management which we have had for about 9 months. But this problem only showed up last week. So it doesn't sound like it's related to our Azure - Guard integration or Asset management as confirmed by Atlassian. I'm working with their support right now for a solution.


author: Dave Mathijs
body: Hi [@Bharat Kumar Bondalapati](/t5/user/viewprofilepage/user-id/5533481) is your Jira site connected with an identity provider via Atlassian Guard? Or are these manually created/invited users?

comments: author: Dave Mathijs
body: [@Bharat Kumar Bondalapati](/t5/user/viewprofilepage/user-id/5533481) Please double check the settings and connection with your IdP in that case. I'm pretty sure the root cause is in that configuration somehow.


author: Bharat Kumar Bondalapati
body: [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) Checked IDP settings and everything is confiogured correctly.

I also found this which I faced 3 to 4 days earlier: <https://community.atlassian.com/t5/Jira-questions/Stop-auto-encoding-field-values-containing-as-mailto-links/qaq-p/2378643>  

This is exactly what's happening with us as well


Tags: cloud

jira-service-management

jira-service-management-cloud
How to set stamp first response time
Asked by Tutsakorn Kittisirikarn:

How can I set stamp first response automatic with out use comment because sometime first reply might be not the first response from my side


Answers:
author: Rick Westbrock
body: If you don't want to use comments to determine first reply then I'm not sure how you would do that. Using comments you can use conditions to check if the comment was posted by the Reporter followed by no actions (i.e. exit) or if comment was posted by anyone else then set the first response time (presumably in a custom field). You could further restrict it by only updating the field if the comment poster is the Assignee. I don't know how you would detect if the comment poster was one user in a list of users other than using multiple if/else conditions.

If this is in a service project then you can use a condition that checks if the comment is public so that internal comments don't update the field (assuming that First Response means a response back to the customer).


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Cannot edit team priority - JIRA service desk
Asked by Patrick de Vries:

I want to change my team priority list by adding and removing some queues. The problem is that everytime I try to edit a queue in this list I get the message from JIRA that "We couldn't update the priority group for queue X".   

This seems an error in JIRA, but maybe I am doing something wrong?  

Would love to hear a solution!


Answers:
author: Dave Mathijs
body: Hello [@Patrick de Vries](/t5/user/viewprofilepage/user-id/4266122) welcome to the Atlassian Community!

You indicated in the permissions level of your question that you are a **Product Admin**.

Are you also a **Project Admin** for the service project? You need to be a project admin to create and manage priority groups.

For reference, this is the documentation article: [Prioritize your queues using groups](https://support.atlassian.com/jira-service-management-cloud/docs/prioritize-your-queues-by-using-groups/)

comments: author: Patrick de Vries
body: Hey [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590)

Thanks for your quick and helpful response! You're right that I got the "We couldn't update the priority group for queue X" notification because I wasn't administrator of the project.   
It does feel strange to me that I didn't get the notification that I don't have the permissions to do that specific action.  

I now run into another issue. I try to reorganise the Team priority list, but it won't update the queue list. To be specific, when I reorder the queues I am able to put the queue in the right spot, but it doesn't end up on the right spot in my queues under Team priority.  

Do you also know how to fix that?

<br />

Would love to hear your response!


author: Dave Mathijs
body: In your **Queue settings** , you have a grey button **Reorder queues**

**![Manage queues order.png](https://community.atlassian.com/t5/image/serverpage/image-id/348178i470A03126F323E99/image-dimensions/424x269?v=v2 "Manage queues order.png")**

Can you perhaps post a screenshot of the actual view and the configured view?


author: Patrick de Vries
body: Thank you for your answer. I found the reorder queues to reshape the team priority list. I found it under Queue settings \> Priority groups \> manage queues.   

By using reorder queues I was changing a different list. Thanks again for your help!

<br />

Warm regards,

Patrick


Tags: cloud

jira-service-management

jira-service-management-cloud

queue
Guest users and knowledge base linked to customer portal
Asked by Ariane Giraud:

Hello

We have guests users enabeled to access a particular space in Confluence. At the same time we have two customer portals for two different projects. Do the guest users are able to access those knowledge bases aswell?


Answers:
author: John Funk
body: Hi Ariane,

The Guest account can only access one Space at a time. So if the Knowledge Bases are in different Spaces, and if the KBs do not have anonymous access (open to everyone on the internet), then no, they will not be able to access them.


author: Sravan Indukur
body: Hi [@Ariane Giraud](/t5/user/viewprofilepage/user-id/5345190) ,

Greetings of the Day,

For Guest Access:

One user (guest) will be given access for only one space in a site.

As you mentioned, you have 2 customer portals (if you mean 2 separate sites) then the user (guest) need to be added to both the sites.

Please refer the below links for further information. :

<https://support.atlassian.com/confluence-cloud/docs/what-can-guests-see-and-do-on-confluence/>

<https://support.atlassian.com/confluence-cloud/docs/invite-guests-for-external-collaboration/>

<https://support.atlassian.com/confluence-cloud/docs/what-can-guests-see-and-do-on-confluence/>

<https://support.atlassian.com/confluence-cloud/docs/set-up-public-access/>

<https://support.atlassian.com/confluence-cloud/docs/assign-space-access-to-guests/>

<https://community.atlassian.com/t5/Confluence-articles/Collaborate-with-anyone-anywhere-with-Confluence-guests-GA/ba-p/2396148>

Regards,

Sravan


Tags: cloud

confluence-cloud

jira-service-management

jira-service-management-cloud
Jira Automation in Pull Request Created bug ?
Asked by ronwaldo_querol:

I created a rule that used "Pull Request Created" and trigger new issue under different Jira projects.   

However, it creates multiple jira issue when I create one pull request.

The log shows:  

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

The source branch is Feature/GHE-72.


Answers:
author: Sam Bartolome
body: Hi [@ronwaldo_querol](/t5/user/viewprofilepage/user-id/5423717)

The screenshot displays four runs where it should be only one, correct?

If this is the case, please review the condition that triggers the automation.

Sam

comments: author: ronwaldo_querol
body: [@Sam Bartolome](/t5/user/viewprofilepage/user-id/5515349) - correct, it should be one.  

The automation I have at the moment is:  

1. When pull request is created.  
2. Create a new issue in the different project with these fields value:  
Summary: {{pullRequest.title}}  
Pull Request Link: {{pullRequest.url}}  


Tags: cloud

jira

jira-service-management-cloud
Jira Automation smart values for sending an email with url link to issue no longer working
Asked by bruce chalupsky:

Hello,

I have a number of automations that email the teams when new items are created, these have links to the new backlog items.

I recently needed to create a new version of an existing automation for when a specific type of issue is created every 3 months. The email that it generates does not have the url linked backlog item, only a blank space where the link should be. The older automations work fine.

I've tried many different smart values and all create nothing but a blank space in the email, such as:

- \<a href="{{issue.toUrl}}"\>{{issue.summary}}\</a\>

- {{issue.baseURL}}

- {{issue.url}}

What am I missing?


Answers:
author: Michel Neeser
body: Hi [@bruce chalupsky](/t5/user/viewprofilepage/user-id/5440044) and welcome!

Actually, *{{issue.url}}* should work and is also mentioned in the [documentation](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/).

Did you try logging *{{issue.url}}* with the log action in your automation rule and check if you get a value? Also, is it possible to share a screenshot of your rule? This way, we can probably support you better.


Tags: cloud

jira

jira-cloud
Automation rule trigger not working as expected
Asked by Mitesh satelkar:

jira trigger not working, All mentioned fields specially for comments


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

For a question like this, please include:

* describe what problem your rule is trying to solve,
* an image of your complete automation rule,
* images of any relevant actions / conditions / branches,
* an image of the audit log details showing the rule execution, and
* explain what is not working as expected.

Those will provide context for the community to offer ideas. Thanks!

Kind regards,  
Bill


Tags: jira-work-management
Automation rule for setting cascade field values with a .CSV
Asked by Heydi Men?ndez:

2.15.1.0

Hello !!

I?m trying to generate an automation rule that sets a personalized cascade field (two values ) when another personalized field is edited but using a .csv . I?d been trying different ways with no success.

This is the example I?m trying to solve.

When "field1" is edited in the issue

search in the .csv the value selected for Field 1

then edit cascade field "parent name/ child name" with the registers of the row that corresponds to Field1 value.

Example of the automation :

If Field 1 is set with value 2 , then set parentname with parentvalue2 and childname with shildvalue2, sort of that

Example of the csv:

Field 1 Parent name Child name

value1 parentvalue1 childvalue1

value2 parentvalue2 childvalue2

Sorry my english...I?ll appreciate your help!!!

Regards!


Answers:
author: Tim Kopperud
body: [@Heydi Men?ndez](/t5/user/viewprofilepage/user-id/4077438), can you give some information where the rule fails? Are you able to import the CSV and read it within the automation? An image of yor failed rule might help.

It would be helpfull to know which part to focus on trying to help you solve this.

TimK


Tags: cloud

jira-service-management

jira-service-management-cloud
If does not work after for each
Asked by Roumena Polianova:

Hi Everyone,

I have an issue to create following automation. I need to create one sub-task for each component of a story except for a component with certain name. Here it is what I have done:  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/331460iB8FBCF5DA1BD4B5C/image-size/large?v=v2&px=999 "image.png")

Unfortunately, it is creating sub-task even for SW_DI_ARCH like "does not equal" does not work. If I use contains the same value SW_DI_ARCH it is not creating even one task. Sounds to me that the matching is not written correct.

Can you help me to identify where is my mistake or how can I do it in different way.

Thank you,

Roumena Polianova


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

For a question like this, please post an image of your *complete automation rule*, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

I hypothesize your advanced branch looks like this:

* smart value: {{issue.components}}
* name: Skills

If so, when your condition tests against {{Skills}} that is comparing to the *id* value for each component, and not the name. The reason is objects like components have a default attribute when only the object is referenced, and that is the *id* value normally.

To test against the *name*, please compare to {{Skills.name}}

Kind regards,  
Bill

comments: author: Roumena Polianova
body: Thank you very much! It works with ".name"


Tags: for-each