youngmon/atlassian-qna huggingface dataset:
Automation: Navigating complex JSON objects using "smart values"
Asked by Paulo Sebasti?o:

Hi all,  

Consider the following JSON:

```
{

"key": "user_details",
"value": [
  {
    "key": "user1@example.com",
    "value": {
         "email": "user1@example.com",
         "accountId": "account-id-1",
         "avatar": "https://avatar-management--avatars.example.com/avatar1.png",
        "slackUserId": "slack-id-1"
    }
  },
  {
     "key": "user2@example.com",
     "value": {
         "email": "user2@example.com",
         "accountId": "account-id-2",
         "avatar": "https://avatar-management--avatars.example.com/avatar2.png",
         "slackUserId": "slack-id-2"
  }
  },
  {
    "key": "user3@example.com",
    "value": {
         "email": "user3@example.com",
         "accountId": "account-id-3",
         "avatar": "https://avatar-management--avatars.example.com/avatar3.png",
         "slackUserId": "slack-id-3"
     } 
  }
 ]
}
```

I get this from an JIRA Project property that I've set programatically. It contains some user details about the users who work on my project. I want to use in JIRA Automation, to be able to send messages directly to the users or posting comments on JIRA cards using their accountId, etc. You get the drill.

Given I have the variable **email** , how do I build a smart value "query" that can give me the slackUserId for the the user with given **email** ?  

Is this even possible in automation?   

Disclaimer: I can structure the object in whatever way I want. Just thought that key-value pair was cute.


Answers:
author: Bill Sheboy
body: Hi [@Paulo Sebasti?o](/t5/user/viewprofilepage/user-id/5545260)

To save you some automation, experimentation time...

Once *inside of an iterator* (e.g., looping over your JSON) data from outside (e.g., your variable email) cannot be accessed.

The workaround is to use your variable and knowledge of the structure to build a dynamic regular expression, and then pass that to the inline iterator with the match() function, finally parsing the data needed using text functions. As a brief example:

* create variable, perhaps named varRegEx, as described above

```
.*(\"email\": \"{{email}}\".*)
```

* split the data on a known location, and use the inline form of iteration for the search

```
{{yourData.replace("\n"," ").split("\"key\":").match(varRegEx)}}
```

* add text functions to the result to parse out the Slack ID

Kind regards,  
Bill


Tags: automation

cloud

jira-cloud
Is it planned to expand the functionality of the new board calendar?
Asked by Santiago M_ Gonzalez Souto:

It would be interesting if you could select the dates to show issues on the calendar and be able to add some of the fields to see on the calendar card, including the issue color.


Answers:
author: John Funk
body: Hi Santiago,

My understanding is yes, it is coming. But I don't know the timeline for it.


Tags: cloud

jira-cloud
O365 incoming mails - no mails
Asked by Ronald Kopecky:

Hi community

after re-authorizing the incoming mail server (Office365), the system does not receive any mails. no error message when testing the mail handler. the test sayed there are no mails, but the mail-folder has a content. bevor re-authorize everything works fine. since change to ms graph api I have the mistakes.

any ideas?

thx ronald


Answers:
author: Ronald Kopecky
body: error found

It is necessary to enter 'Inbox' in the folder name field.

ronald


Tags: cloud

jira-cloud
Is it possible to use Lookup objects in Jira Software project?
Asked by Urmo:

Hi

I know that in Jira Service Management project i can use in Automation Lookup objects what are hold in Assets but is there any solution that I can use Lookup objects with Jira Software project also if i had Assets module?


Answers:
author: Marc - Devoteam
body: Hi [@Urmo](/t5/user/viewprofilepage/user-id/2106317)

Yes you can use asset custom fields also in Jira Software (just Jira now).

And you will be able to use the lookup objects also in automation rules related to Jira Software projects.

comments: author: Urmo
body: Idea is lookup objects from assets and create ticket into projects for every object owner but right now i understand that i should do it thru customfield?


author: Marc - Devoteam
body: Hi [@Urmo](/t5/user/viewprofilepage/user-id/2106317)

Asset information can be access directly via an automation rule, there is no custom field for this needed.

But if you want to show asset information in issues in your Jira Software project, you will need to create custom fields, just as you would do in JSM.

The practice is identical.

If you would just have Jira Software, you wouldn't have asset options at all.


author: Urmo
body: Idea is use Jira Software project where i can Lookup objects from Assets. Take out un updated objects and generate with automation ticket users. If I use Jira Service Management, then I need license for 100 users but I was hoping that I can use Lookup Objects also in Jira Software project and generate there tickets where user can see assets values and set accept data or let change Asset values.


author: Marc - Devoteam
body: Hi [@Urmo](/t5/user/viewprofilepage/user-id/2106317)

This can't be done, this requires a JSM license to make use of the Assets functionality.


author: Urmo
body: I have in same atlassian.net Jira Software and Jira Service Management license.


Tags: assets

cloud

jira-cloud
Automation Rule: Sum up time Spent of Dev/QA Story/Bug and add them in Parent/Epic
Asked by Emna Elleuch:

Hi,

This is the current Process that we are using in one of the project

1. I have an Epic with a Time spent field

2 I add Bugs, Dev Story and QA Story and log time under these issue type

==\> I would like to add an Automation Rule that Sum up the time spent in all of Dev Story/QA Story and Bugs and add this time under the TIme Spent field in Epic

Note that: Epic is added as Parent to all of Bugs/Dev and QA Story

Thanks for your help


Answers:
author: Marc - Devoteam
body: Hi [@Emna Elleuch](/t5/user/viewprofilepage/user-id/4862258)

Look at this article, this has it already outlined.

[How-to-use-automation-to-sum-up-in-EPIC-the-hours-logged-in-child-issues](https://community.atlassian.com/t5/Automation-questions/How-to-use-automation-to-sum-up-in-EPIC-the-hours-logged-in/qaq-p/1954914#U2082731)


Tags: cloud

jira-cloud
Doubt in Automation of extracting issue key from other custom field from one issue type to other ?
Asked by thumuluru_shreya:

I have two issues A, B and one custom field as: Extracting issue key. Here whenever A is linked to B or B is linked to A. A issue key needs to update in Extracting issue key using Automation? If anyone help on this


Answers:
author: Marc - Devoteam
body: Hi [@thumuluru_shreya](/t5/user/viewprofilepage/user-id/5541517)

Why would you require this, this information is already in the linked issues section.

The key of the linked issue is stated there.

comments: author: thumuluru_shreya
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) , **I Know But I need to copy the issue key from one issue type to other issue type it needs to autopopulate to one custom field based on linking using automation**

I have two issues A, B and one custom field as: Extracting issue key. Here whenever A is linked to B or B is linked to A. A issue key needs to update in Extracting issue key using Automation? If anyone help on this


author: Marc - Devoteam
body: Hi [@thumuluru_shreya](/t5/user/viewprofilepage/user-id/5541517)

Still my question why as the link is set bi-directional.

What is the value of having the issue key in a separate field?


author: thumuluru_shreya
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) , In other issue I don't have direct Link from A to C. It Is there from B to C. Thats why I need to autopopulate A key in B issue. So that I can extract from C. It is for report generation.


author: Marc - Devoteam
body: Hi [@thumuluru_shreya](/t5/user/viewprofilepage/user-id/5541517)

I'm testing an automation and I think I'm close, but not the required result is achieved


author: Marc - Devoteam
body: Hi [@thumuluru_shreya](/t5/user/viewprofilepage/user-id/5541517)

The rule should be something like this, but it's all depending on what inward or outward link you are choosing on which issue, this could lead to many options

I hope you can play with it. I currently don't have time to investigate it further this week.

![Screenshot 2024-07-31 at 13.51.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/339114iE5FA0F441F6D434C/image-dimensions/342x435?v=v2 "Screenshot 2024-07-31 at 13.51.16.png")

![Screenshot 2024-07-31 at 13.51.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/339114iE5FA0F441F6D434C/image-dimensions/342x435?v=v2 "Screenshot 2024-07-31 at 13.51.16.png")


Tags: cloud

jira-cloud
Smart value for space on either side of word
Asked by Sharon:

Looking for a smart value for a **space on either side of the word "BMM"**.

When issue is created, and the "summary" contains "BMM" then edit issue field xx.

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


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

For that type of condition / comparison, I believe the rule editor is removing or ignoring the spaces.

If you wanted to compare to exactly " BMM ", you could use the [smart value condition](https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#--smart-values---condition) with a regular expression:

* first value: {{issue.summary}}
* condition: contains regular expression
* regular expression: ( BMM )

Kind regards,  
Bill

comments: author: Sharon
body: Hi Bill, I'm new to automations. I don't think I'm understanding - is this correct?

Also, is "Match case" ticked or unticked?

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


author: Sharon
body: Looks like that has worked! Thanks Bill :)


Tags: cloud

jira-cloud
Issue Action Buttons hiding in Plus-Button
Asked by Geyer, Simon:

Hello everyone,

we are currently facing some confusing behaviour in our Jira Cloud:

The action buttons (i.e. Link issue; Create Sub-Taks; Add attachement) within the issue view are hiding behind the "Plus"-Button. These Actions-Buttons were showing as single Buttons directly on top of each issue before.

This somehow gradually affects users individually. Some users still have the buttons listed seperatly on top of the issue view. Other users have these buttons consolidated behind the "+"-Button:

**"New" Action-Button View:**

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

**"Previous" and preferred Action-Button View:**

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

How is it possible to change the "new" Action-Button View back to the previous configuration?

Thanks for ur help in advance!

Edit: The issue-type (like Bug or Task) does not affect the configuration.


Answers:
author: Hans Polder
body: [@Geyer, Simon](/t5/user/viewprofilepage/user-id/5551422) ,

It sounds a lot like <https://community.atlassian.com/t5/Jira-questions/Quick-Add-Buttons-now-nested-under-a-new-button-called-quot-Add/qaq-p/2763786>

Good that you added the screenshots! I think this is something you need to take up with Atlassian Support. I hope this is some sort of bug or unintended change... or at least something you can choose on global administration level. Can you raise a ticket via <https://support.atlassian.com> and keep us updated on your progress?

comments: author: Geyer, Simon
body: Hey, thanks for the quick response - I've created a support-ticket:

<https://support.atlassian.com/requests/JST-1022383/>


Tags: cloud

jira-service-management

jira-service-management-cloud
Configure Field For Required Field
Asked by Tasya Febriany:

I am receiving this notification for a custom field. Please advise how to remove this field from screen.

![Notif.png](/t5/image/serverpage/image-id/337560iB5934B85F6BBF3EC/image-size/large?v=v2&px=999 "Notif.png")

I do change field config, project and issue type scope to another field from  
"Start Date" to "Start date".

Because this field is has to be "required" field, but i want to change that to "non required" field (i can't change the option from required to optional because the other field was associated with another screen in another project).

![BefAft.png](/t5/image/serverpage/image-id/337567iE87A67365BE32C15/image-size/large?v=v2&px=999 "BefAft.png")

And field "Start date" appeared  
![Issue.png](/t5/image/serverpage/image-id/337569i1AF92554FACAF194/image-size/large?v=v2&px=999 "Issue.png")  

But still, i got this notification  
![Pop Up.png](/t5/image/serverpage/image-id/337570i53A63DCE47600452/image-size/large?v=v2&px=999 "Pop Up.png")


Answers:
author: Kishan Sharma
body: Hi [@Tasya Febriany](/t5/user/viewprofilepage/user-id/5148536)

Since "**Start Date** " is required field in the field configuration and is not added to the screen, you are getting the error. If you remove the "**Start Date**" field from the field configuration, the error should be resolved.

comments: author: Tasya Febriany
body: Thanks for reply, but i can't remove the "Start Date" from field configuration, because that field was associated with another screen in another project. I don't want to ruin that


author: Kishan Sharma
body: I would suggest creating a copy of the existing field configuration, remove "**Start Date**" field from it, and assign it to your specific project.


author: Kishan Sharma
body: Hi [@Tasya Febriany](/t5/user/viewprofilepage/user-id/5148536) If my response was helpful, feel free to mark it as accepted; it can assist other users facing similar questions.


author: ?ukasz Modzelewski _TTPSC_
body: it looks like this might be a different field ("Start **d** ate" vs "Start **D**ate"), if you have multiple with same name, try differentiate them by changing name (even temporary) to clear up the mess and simplify a bit.


author: vasanth
body: [@Tasya Febriany](/t5/user/viewprofilepage/user-id/5148536)

you can edit the Context of that field, and select only a particular project. it won't ask now.


Tags: cloud

jira-cloud
send recovery mail error
Asked by ???:

hi

can't connect because secondary authentication doesn't come to my email or contact information.  
When I click the button, an error continues to occur as shown below

We'll email you at **letter20@nate.com** with instructions for how to recover access to your account.

For security reasons, this process will take some time to complete, and you may be contacted by our Support team for verification.  
Unexpected error happened.  
Can you resend the security key to that email?


Answers:
author: Nikola Perisic
body: Hello [@???](/t5/user/viewprofilepage/user-id/5551436)

Please open a support ticket for Atlassian here: <https://support.atlassian.com/contact/#/>

Bear in mind that this is a public site and none public information should be shared.


Tags: cloud

jira-cloud
Unable to get the account id from users list
Asked by Gopala Krishna Turlapati Verra Venkata Satyanarayana:

While getting the users via https://\[host\]/jira/rest/api/2/user?username=\[email\] but account id is not returned


Answers:
author: Hans Polder
body: [@Gopala Krishna Turlapati Verra Venkata Satyanarayana](/t5/user/viewprofilepage/user-id/5469623) ,

Can you give some more context? Do you actually get any results, or nothing whatsoever?

According to [the documentation](https://developer.atlassian.com/server/jira/platform/rest/v10000/api-group-user/#api-api-2-user-get), there is no such thing as 'accountid' in the response. AccountID is a Cloud value, I don't believe this is there in DC.

What are you trying to achieve?


Tags: data-center

jira-data-center

jira-server

server
JIRA - Confluence - Approval option
Asked by Prasanna subramaniam:

Dear Community ,

One of our customer wants the JIRA workflow to transition to the next state/stage only when a document is verified and approved in Confluence.

Is there a way to achieve this? If so, could you please provide the relevant article or approach from the Atlassian support site?

Thanks,

Prasanna Subramaniam


Answers:
author: Vronik
body: Hi

Look at this articles, maybe can help you

<https://confluence.atlassian.com/adminjiraserver/configuring-workflow-triggers-938847513.html>

<https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/>

<https://confluence.atlassian.com/jirakb/approval-status-stuck-in-submitting-approval-1387867560.html>


Tags: cloud

jira-cloud
how to invite users and add people to groups
Asked by UGGIRALA KALYAN SRINIVAS:

how to invite new users and add people to groups


Answers:
author: Alex Koxaras _Relational_
body: Hi [@UGGIRALA KALYAN SRINIVAS](/t5/user/viewprofilepage/user-id/5550536) and welcome to the community,

Please follow these instructions: <https://support.atlassian.com/user-management/docs/invite-a-user/> and <https://support.atlassian.com/user-management/docs/edit-a-group/>


Tags: cloud

jira-cloud
Clean up Custom Fields - Not used in any projects but for in some Screens & Context
Asked by Rafael Freymueller:

Hi everyone,

I'm tasked with deleting some old / redundant custom fields in our Jira instance.

However, I want to make sure that I am not deleting anything that is still being used.

Some of the questions I ran into are:

1. If a custom field is not being used in a project, but has a context, can I assume it is not being used in any project right now?
2. If a custom field is not being used in any project, but is included in a Screen, can I assume it is not being used in any current project?
3. If a custom field's "Last used" says "No information" or "Not tracked", can I assume it was never used at all and its safe to delete?
4. Some custom fields context also states that they are part of the default configuration scheme for "XY" e.g. "Vulnerability", should similar custom fields which are not being used in any project (but may be attached to Screens) be kept?

I would also appreciate some general insights and tips on how to deal with the clean up process for not needed custom fields. For some I will reach out to the different departments. However, due to the sheer amount of custom fields that would slow down the process dramatically.

Thanks everyone for your valuable input!


Answers:
author: Rafael Freymueller
body: Any advice for me? Would very much appreciate it! :)


Tags: clean-up

cloud

custom-field

jira-administration

jira-cloud
Power-up OneDrive
Asked by Gabriella Thomas:

I have added the OneDrive power-up to my board on the windows desktop app. But when I try to attach something from OneDrive on the iPhone app it doesn't come up as an option. What am I doing wrong? Thank you!


Answers:
author: Vishaal S
body: Hi Gabriella Thomas,

Vishaal here with Trello---thanks for reaching out

I understand you are trying to attach files from OneDrive by using your Trello mobile app. Unfortunately, the One Drive Power-Up isn't available with the mobile version at the moment, so I'd recommend attaching your file as a link.

You can open your attachment section on your card, and select the **Attach a link** option:

Then, you can just paste the link from the file inside OneDrive inside the box that will be displayed. I definitely understand that this is not the ideal solution you're looking for, so I'll file your case as a suggestion for our Dev Team! We really appreciate the feedback.

Do let me know if you've more questions. I'd be happy to help.
Copy Board
Asked by Gabriella Thomas:

Hi, I created a template board and added members to each card as my projects will always have the same cards. However, when I copied the boards the members didn't get copied. Is there a way around this or do I have to individually add members to each card again? Thank you!??


Answers:
author: Alicia Fil?u Birlanga
body: HI [@Gabriella Thomas](/t5/user/viewprofilepage/user-id/5418578) ! Nice to meet you :-)

Indeed, when you copy a board, neither the activity nor the members are copied. However you can use this trick ;-)

You can name in the description who is in charge by putting for example "@alicia"

And even, if you have a checklist, name in each item who should be in charge of it.

You can make a card with checklist, and convert it in a template also.

I hope this can help you. Ask me If I haven't explained myself well

Let me know.

Regards

Alicia


author: Hannah Humbert - Simpla Workflows
body: [@Gabriella Thomas](/t5/user/viewprofilepage/user-id/5418578) another option could be to copy the boards without the cards or lists, add all the members to the newly created board (the members need to be added at the board level before they can be assigned to cards), then copy the lists from the original board to the new board. Copying a card from one board to another will retain the members as long as the members are on the destination board.
Hello I need help to prevent this option from appearing every time I open a card where I have links
Asked by mgf_:

Hello  
I need help to prevent this option from appearing every time I open a card where I have links to DRIVE. Thank you so much![drive.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/303388i23716B686C42A005/image-size/large?v=v2&px=999 "drive.jpg")


Answers:
author: Dreamsuite Mike
body: Hi [@mgf_](/t5/user/viewprofilepage/user-id/5417514)

If you don't want it to show like that:

1. Disable Google Drive Power-up
2. Click on the cross to the left of **Habilitar Google Drive**

It should then look like this:

![Screenshot 2024-01-31 00.26.37.png](https://community.atlassian.com/t5/image/serverpage/image-id/303403i0DD65C562BD49E7E/image-size/large?v=v2&px=999 "Screenshot 2024-01-31 00.26.37.png")

comments: author: mgf_
body: First of all, thank you very much for your contact and help.  
I click on the cross on the left and the link to DRIVE actually disappears, but the problem is that when I enter the card again it returns to the starting point and I have to click again. Is there any way to disable this from repeating over and over again? thank you very much Mike.

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


author: mgf_
body: Hi Mike

The problem keeps appearing, could you help me, thank you


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Which option are you wanting to get rid of?

comments: author: mgf_
body: thanks for connecting and for the help  
As I said in the response to Mike, I would like to disable drive on the cards. I do not have Drive enabled as power upp.  
Thank you.


author: mgf_
body: I don't want this view to appear when entering a card

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


author: Nic Brough -Adaptavist-
body: I am afraid it is the same answer, if you want rid of this, you need to remove the Drive app or connection.


author: mgf_
body: and where I could perform this action, because from Drive I already deactivated it.  
thank you